Hotfix for user button not working

This commit is contained in:
Thomas Göttgens 2022-12-29 11:55:19 +01:00
parent 475c87b0e4
commit 7f3a624ee3

View File

@ -1072,7 +1072,7 @@ int32_t Screen::runOnce()
break; break;
case Cmd::ON_PRESS: case Cmd::ON_PRESS:
// If a nag notification is running, stop it // If a nag notification is running, stop it
if (externalNotificationModule->nagCycleCutoff != UINT32_MAX) { if (moduleConfig.external_notification.enabled && (externalNotificationModule->nagCycleCutoff != UINT32_MAX)) {
externalNotificationModule->stopNow(); externalNotificationModule->stopNow();
} else { } else {
// Don't advance the screen if we just wanted to switch off the nag notification // Don't advance the screen if we just wanted to switch off the nag notification