diff --git a/src/modules/ExternalNotificationModule.cpp b/src/modules/ExternalNotificationModule.cpp index a49ba6f39..7e776f172 100644 --- a/src/modules/ExternalNotificationModule.cpp +++ b/src/modules/ExternalNotificationModule.cpp @@ -116,7 +116,6 @@ ExternalNotificationModule::ExternalNotificationModule() // restrict to the admin channel for rx boundChannel = Channels::gpioChannel; -#ifdef ARCH_ESP32 #ifdef EXT_NOTIFY_OUT /* @@ -149,12 +148,10 @@ ExternalNotificationModule::ExternalNotificationModule() enabled = false; } #endif -#endif } ProcessMessage ExternalNotificationModule::handleReceived(const MeshPacket &mp) { -#ifdef ARCH_ESP32 #ifdef EXT_NOTIFY_OUT if (moduleConfig.external_notification.enabled) { @@ -182,8 +179,6 @@ ProcessMessage ExternalNotificationModule::handleReceived(const MeshPacket &mp) } else { DEBUG_MSG("External Notification Module Disabled\n"); } -#endif - #endif return ProcessMessage::CONTINUE; // Let others look at this message also if they want diff --git a/src/modules/Modules.cpp b/src/modules/Modules.cpp index 32dfa86c5..a049651bd 100644 --- a/src/modules/Modules.cpp +++ b/src/modules/Modules.cpp @@ -6,7 +6,6 @@ #include "input/facesKbI2cImpl.h" #include "modules/AdminModule.h" #include "modules/CannedMessageModule.h" -#include "modules/ExternalNotificationModule.h" #include "modules/NodeInfoModule.h" #include "modules/PositionModule.h" #include "modules/RemoteHardwareModule.h" @@ -23,7 +22,9 @@ #include "modules/esp32/SerialModule.h" #include "modules/esp32/StoreForwardModule.h" #endif - +#if defined(ARCH_ESP32) || defined(ARCH_NRF52) +#include "modules/ExternalNotificationModule.h" +#endif /** * Create module instances here. If you are adding a new module, you must 'new' it here (or somewhere else) */