Skip to content

Commit

Permalink
[usbtracker] Don't prevent reboots when usb connected in pc_suite mod…
Browse files Browse the repository at this point in the history
…e. JB#13357

Signed-off-by: Pekka Lundstrom <pekka.lundstrom@jollamobile.com>
  • Loading branch information
Pekka Lundstrom committed Mar 3, 2014
1 parent be4f62b commit f2fe064
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 f2fe064

Please sign in to comment.