• 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
usb_moded-udev.c 11.3 KB