Skip to content
  • Marti Raudsepp's avatar
    power: Improve battery warning debounce logic · 39c9fd0f
    Marti Raudsepp authored and Benjamin Berg's avatar Benjamin Berg committed
    Despite the debounce logic introduced in
    60621b90, GSD kept warning me of the
    battery level every time my Logitech K600 keyboard (via Unifying
    receiver) disconnects/reconnects.
    
    Added another condition: when battery level drops to
    `UP_DEVICE_LEVEL_NONE`, the previous entry in the hash table would not
    be overwritten. This avoids duplicated warnings when transitioning
    NONE->LOW->NONE->LOW.
    39c9fd0f