mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 00:00:44 +01:00
[ion] No led when charging in sleep mode
Change-Id: I8cdea4d435226fbc877e398909926c83642e0e55
This commit is contained in:
@@ -14,6 +14,7 @@ void USBTimer::fire() {
|
||||
if (!m_previousPluggedState && GlobalPreferences::sharedGlobalPreferences()->examMode() == GlobalPreferences::ExamMode::Activate) {
|
||||
m_container->displayExamModePopUp(false, true);
|
||||
}
|
||||
#if LED_WHILE_CHARGING
|
||||
KDColor LEDColor = Ion::Battery::isCharging() ? KDColorYellow : KDColorGreen;
|
||||
Ion::LED::setColor(LEDColor);
|
||||
m_previousPluggedState = true;
|
||||
@@ -22,5 +23,6 @@ void USBTimer::fire() {
|
||||
Ion::LED::setColor(KDColorBlack);
|
||||
m_previousPluggedState = false;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user