[ion] No led when charging in sleep mode

Change-Id: I8cdea4d435226fbc877e398909926c83642e0e55
This commit is contained in:
Émilie Feral
2017-05-04 16:19:37 +02:00
parent ce947a7e07
commit beeed6ab2b
3 changed files with 14 additions and 2 deletions

View File

@@ -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
}
}