mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 17:20:53 +01:00
[apps] In USB timer, change color only when USB state has changed
Change-Id: I1ded3b149fd1987589566191f70d0ace992775f5
This commit is contained in:
@@ -18,7 +18,9 @@ void USBTimer::fire() {
|
||||
Ion::LED::setColor(LEDColor);
|
||||
m_previousPluggedState = true;
|
||||
} else {
|
||||
Ion::LED::setColor(KDColorBlack);
|
||||
m_previousPluggedState = false;
|
||||
if (m_previousPluggedState) {
|
||||
Ion::LED::setColor(KDColorBlack);
|
||||
m_previousPluggedState = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user