• 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\
              --enable-led-pattern=PatternProximityUncovering\
              --enable-led-pattern=PatternProximityUncovered
    
    And disabled again with:
      mcetool --disable-led-pattern=PatternProximityCovered\
              --disable-led-pattern=PatternProximityUncovering\
              --disable-led-pattern=PatternProximityUncovered
    Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
    5667900c