Skip to content

Commit

Permalink
Fixed get_usb_mode_index
Browse files Browse the repository at this point in the history
  • Loading branch information
SkrilaxCZ committed Apr 19, 2012
1 parent 0b3f314 commit 3636b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usbd.c
Expand Up @@ -319,7 +319,7 @@ static int usbd_get_mode_index(const char* mode, enum usb_mode_get_t usbmod)
break;

case USBMOD_APK_START:
if (!strcmp(mode, usb_modes[i].apk_start))
if (!strncmp(mode, usb_modes[i].apk_start, strlen(usb_modes[i].apk_start)))
return i;
break;

Expand Down

0 comments on commit 3636b1a

Please sign in to comment.