Skip to content

Commit

Permalink
[common] Do not implicitly map fallback charging mode to ask on D-Bus
Browse files Browse the repository at this point in the history
Underneath the hood fallback charging mode and ask mode are equivalent.
However ask mode must not be exposed on D-Bus until device has been
unlocked i.e. blindly mapping fallback charging to produce ask mode
activation is not correct.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Sep 5, 2018
1 parent 3b873f0 commit 92bcb71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usb_moded-common.c
Expand Up @@ -141,7 +141,7 @@ static const modemapping_t common_modemapping[] =
{
.internal_mode = MODE_CHARGING_FALLBACK,
.hardware_mode = MODE_CHARGING,
.external_mode = MODE_ASK,
.external_mode = 0,
},
{
.internal_mode = MODE_CHARGER,
Expand Down

0 comments on commit 92bcb71

Please sign in to comment.