Commit 7f8626a8 authored by Philippe De Swert's avatar Philippe De Swert

[rescue] Make sure the secondary device lock check gets also ignored.

The secondary device lock check needs also to be ignored for a working
rescue mode.
Signed-off-by: default avatarPhilippe De Swert <philippe.deswert@jollamobile.com>
parent d6c46160
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment