Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[usb-moded] Additional fix for broken usb drivers when setting mode
Fixes a continuous disconnect/connect loop when the first disconnect signal doesn't originate from user activity.
  • Loading branch information
mlehtima committed May 23, 2015
1 parent 6ef122a commit 01e3b8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/usb_moded.c
Expand Up @@ -131,6 +131,9 @@ void set_usb_connected(gboolean connected)
*/
if(current_mode.android_usb_broken)
set_android_charging_mode();
if (android_ignore_udev_events) {
android_ignore_next_udev_disconnect_event = TRUE;
}
}

}
Expand Down

0 comments on commit 01e3b8a

Please sign in to comment.