Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Actually activate the usb gadget on connect...
Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed May 16, 2013
1 parent a747ef0 commit da73a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usb_moded-modules-android.c
Expand Up @@ -52,7 +52,7 @@ int usb_moded_load_module(const char *module)
int ret = 0;

write_to_file("/sys/class/android_usb/android0/functions", module);
write_to_file("/sys/class/android_usb/android0/enable", "0");
write_to_file("/sys/class/android_usb/android0/enable", "1");
if( ret == 0)
log_info("Module setting to %s successfully\n", module);
return(ret);
Expand Down

0 comments on commit da73a71

Please sign in to comment.