Merge pull request #2072 from meshtastic/hotfix-01

Hotfix for user button not working
This commit is contained in:
Ben Meadors 2022-12-29 06:22:58 -06:00 committed by GitHub
commit e09b12ca58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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