1
0
Fork 0

Correct change test for wake up mode setting

This commit is contained in:
Colin Kinloch 2021-08-26 19:42:02 +01:00
parent df8ea7fe52
commit b45d7c372d

View file

@ -78,7 +78,7 @@ namespace Pinetime {
};
void setWakeUpMode(WakeUpMode wakeUp, bool enabled) {
if (!isWakeUpModeOn(wakeUp)) {
if (enabled != isWakeUpModeOn(wakeUp)) {
settingsChanged = true;
}
settings.wakeUpMode.set(static_cast<size_t>(wakeUp), enabled);