Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[usb-moded] If there is no mode to set, fallback to charging
Also re-order code a bit so we fix a potential null dereference. Fixes: CID #1103634 Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
- Loading branch information
1 parent
96947ff
commit ac843e0
Showing
1 changed file
with
15 additions
and
9 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