mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
Fix compilation errors on n0110
This commit is contained in:
2
apps/external/archive.cpp
vendored
2
apps/external/archive.cpp
vendored
@@ -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) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user