Fixed an compilation issue

This commit is contained in:
Quentin Guidée
2019-12-15 14:23:37 +01:00
parent 6a55305d52
commit 03584eda4d

View File

@@ -9,7 +9,7 @@ namespace LED {
KDColor updateColorWithPlugAndCharge() {
KDColor ledColor = getColor();
if (GlobalPreferences::sharedGlobalPreferences()->examMode() != GlobalPreferences::ExamMode::Activate) { // If exam mode is on, we do not update the LED with the plugged/charging state
if (GlobalPreferences::sharedGlobalPreferences()->examMode()) { // If exam mode is on, we do not update the LED with the plugged/charging state
if (USB::isPlugged()) {
ledColor = Battery::isCharging() ? KDColorOrange : KDColorGreen;
} else {