From 61f214bcb2ef8c6913fa4bc21df05f0253e30cc9 Mon Sep 17 00:00:00 2001 From: M4x1m3 Date: Sat, 11 Jan 2020 17:33:13 +0100 Subject: [PATCH] Fixed apps dependency in ion. --- ion/src/device/n0110/drivers/led.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ion/src/device/n0110/drivers/led.cpp b/ion/src/device/n0110/drivers/led.cpp index 28d425096..676464827 100644 --- a/ion/src/device/n0110/drivers/led.cpp +++ b/ion/src/device/n0110/drivers/led.cpp @@ -1,15 +1,14 @@ #include #include #include - -#include +#include namespace Ion { namespace LED { KDColor updateColorWithPlugAndCharge() { KDColor ledColor = getColor(); - if (!GlobalPreferences::sharedGlobalPreferences()->isInExamMode()) { // If exam mode is on, we do not update the LED with the plugged/charging state + if (ExamMode::FetchExamMode() == 0) { // 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 {