Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed get_usb_mode_index

  • Loading branch information...
commit 3636b1a74d1d950765d5206542754bd14ef7fd77 1 parent 0b3f314
@SkrilaxCZ SkrilaxCZ authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  usbd.c
View
2  usbd.c
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.