• spiiroin's avatar
    [udev] Cancel mode selection when charger is detected. Fixes MER#1677 · b1d7a18f
    spiiroin authored
    When charger is connected, usb-moded can see first "USB" (=cable)
    connection event from udev followed by "USB_CDP" (=charger) event.
    Due to cached something-connected flag usb moded still behaves as
    if pc cable were connected - which leaves ui thinking mode selection
    can/should be done etc.
    
    If dedicated charger is reported after pc cable, clear the low level
    something-connected flag before acting on charger connected info.
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
    b1d7a18f
Name
Last commit
Last update
config Loading commit data...
debian Loading commit data...
docs Loading commit data...
openembedded Loading commit data...
rpm Loading commit data...
src Loading commit data...
systemd Loading commit data...
utils Loading commit data...
.gitignore Loading commit data...
Copyright Loading commit data...
LICENSE Loading commit data...
Makefile.am Loading commit data...
README.md Loading commit data...
TODO Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
usb-moded.ini Loading commit data...
usb_moded.pc.in Loading commit data...