Only send low peripheral battery notification when in discharging state
ClosedPublic

Authored by drosca on Dec 31 2017, 10:12 AM.

Details

Summary

Otherwise this notification is sent when connecting devices with "unknown" battery state (State = 0 in upower).

Test Plan

No more annoying notification everytime i connect my keyboard.

Diff Detail

Repository
R122 Powerdevil
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
drosca created this revision.Dec 31 2017, 10:12 AM
Restricted Application added a project: Plasma. · View Herald TranscriptDec 31 2017, 10:12 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
drosca requested review of this revision.Dec 31 2017, 10:12 AM
broulik accepted this revision.Jan 4 2018, 3:08 PM
This revision is now accepted and ready to land.Jan 4 2018, 3:08 PM
This revision was automatically updated to reflect the committed changes.