• spiiroin's avatar
    [led] Add proximity sensor debugging patterns. JB#43690 · 5667900c
    spiiroin authored
    Debugging proximity sensor issues is difficult as inspecting logs is
    usually not possible in the situation where the problem is detected,
    or the sensor has failed in distant enough past so that logs have been
    already lost due to log rotation.
    Add led patterns that are activated/deactivated as follows:
    - PatternProximityCovered when sensor is reporting closed state.
    - PatternProximityUncovering when sensor is reporting uncovered state, but
      effective state is still covered (uncover hysteresis).
    - PatternProximityUncovered when effective proximity state is uncovered.
    The patterns are disabled by default, but can be enabled via:
      mcetool --enable-led-pattern=PatternProximityCovered\
    And disabled again with:
      mcetool --disable-led-pattern=PatternProximityCovered\
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>