Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[usb_moded] Fix mode-switch failure handling
Using MODE_CHARGING_FALLBACK as mode switch failure fallback causes retriggering of "ask" mode. And overriding only higher level state data leads to subtle issues later on. Use MODE_CHARGING as failure fallback, and override both high and low level mode state info when requested mode can't be activated. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
1 changed file
with
19 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters