Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[worker] Fallback to undefined on cable disconnect. Fixes JB#43781
Cable disconnect during mode transition is handled via the code same path as errors in mode setting actions - which leads to usb-moded declaring charging mode despite not having any usb connection. Check the latest requested usb mode on failures and use it to choose between charging and undefined fallback modes. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information