Merge pull request #617 from ColinKinloch/wake_up_mode_setting_change

Correct change test for wake up mode setting
This commit is contained in:
JF002 2021-09-12 18:41:26 +02:00 committed by GitHub
commit c9aeef94ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,7 +114,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);