From b134f0bb46270f8a178d853602c3d122908a7838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Wed, 28 Dec 2022 15:45:46 +0100 Subject: [PATCH] missed one --- src/modules/ExternalNotificationModule.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/ExternalNotificationModule.cpp b/src/modules/ExternalNotificationModule.cpp index 1235524a4..be3e6cd8b 100644 --- a/src/modules/ExternalNotificationModule.cpp +++ b/src/modules/ExternalNotificationModule.cpp @@ -37,7 +37,11 @@ int32_t ExternalNotificationModule::runOnce() if (!moduleConfig.external_notification.enabled) { return INT32_MAX; // we don't need this thread here... } else { +#ifndef ARCH_PORTDUINO if ((nagCycleCutoff < millis()) && !rtttl::isPlaying()) { +#else + if (nagCycleCutoff < millis()) { +#endif nagCycleCutoff = UINT32_MAX; DEBUG_MSG("Turning off external notification: "); for (int i = 0; i < 2; i++) {