Skip to content

Commit

Permalink
Merge pull request #60 from plundstr/next
Browse files Browse the repository at this point in the history
[usbtracker] Don't prevent reboots when usb connected in pc_suite mode. ...
  • Loading branch information
Pekka Lundstrom committed Mar 3, 2014
2 parents be4f62b + f2fe064 commit 915a027
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/usbtracker.c
Expand Up @@ -79,10 +79,12 @@ static void usb_state_ind(const DsmeDbusMessage* ind)
// dsme_log(LOG_DEBUG, "usbtracker: %s(state = %s)",__FUNCTION__, state);

if (strcmp(state, "mass_storage") == 0 ||
strcmp(state, "data_in_use" ) == 0 ||
strcmp(state, "pc_suite" ) == 0)
strcmp(state, "data_in_use" ) == 0)
{
mounted_to_pc_new = true;
/* Note that we have also mode "pc_suite" but in that mode we don't
* need to protect reboots and thus don't set this flag.
*/
}
if (strcmp(state, "USB connected") == 0 ||
strcmp(state, "charger_connected") == 0 )
Expand Down

0 comments on commit 915a027

Please sign in to comment.