usbhost_storage.c: Fixed Bug in usbhost_freedevno(...), worked only for 'a'.
This commit is contained in:
parent
02a9228c1f
commit
2a11ad520b
1 changed files with 1 additions and 1 deletions
|
@ -482,7 +482,7 @@ static int usbhost_allocdevno(FAR struct usbhost_state_s *priv)
|
|||
|
||||
static void usbhost_freedevno(FAR struct usbhost_state_s *priv)
|
||||
{
|
||||
int devno = 'a' - priv->sdchar;
|
||||
int devno = priv->sdchar - 'a';
|
||||
|
||||
if (devno >= 0 && devno < 26)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue