Navigation Menu

Skip to content

Commit

Permalink
[rescue] Make sure the secondary device lock check gets also ignored.
Browse files Browse the repository at this point in the history
The secondary device lock check needs also to be ignored for a working
rescue mode.

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Jun 19, 2014
1 parent d6c4616 commit 7f8626a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usb_moded.c
Expand Up @@ -316,7 +316,7 @@ void set_usb_mode(const char *mode)
{
export = usb_moded_get_export_permission();

if(export && strcmp(mode, MODE_CHARGING))
if(export && strcmp(mode, MODE_CHARGING) && !rescue_mode)
{
log_debug("Secondary device lock check failed. Not setting mode!\n");
goto end;
Expand Down

0 comments on commit 7f8626a

Please sign in to comment.