diff --git a/apps/external/archive.cpp b/apps/external/archive.cpp index 2818d4a51..3472aabe5 100644 --- a/apps/external/archive.cpp +++ b/apps/external/archive.cpp @@ -36,7 +36,7 @@ bool isSane(const TarHeader* tar) { } bool isExamModeAndFileNotExecutable(const TarHeader* tar) { - return GlobalPreferences::sharedGlobalPreferences()->examMode() && (tar->mode[4] & 0x01) == 0; + return GlobalPreferences::sharedGlobalPreferences()->isInExamMode() && (tar->mode[4] & 0x01) == 0; } bool fileAtIndex(size_t index, File &entry) { diff --git a/ion/src/device/n0110/drivers/led.cpp b/ion/src/device/n0110/drivers/led.cpp index a63b35189..9990bdc41 100644 --- a/ion/src/device/n0110/drivers/led.cpp +++ b/ion/src/device/n0110/drivers/led.cpp @@ -9,7 +9,7 @@ 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 (GlobalPreferences::sharedGlobalPreferences()->isInExamMode()) { // 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 {