Fix compilation errors on n0110

This commit is contained in:
Quentin Guidée
2019-12-25 14:40:57 +01:00
parent 57f2b41c3f
commit 160adf6bab
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {

View File

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