From b96dd6d36d96e1ec65570752bdb2db1f81d43f89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Mon, 12 Sep 2022 10:53:11 +0200 Subject: [PATCH] T-Echo does not have Serial2 --- src/modules/Modules.cpp | 2 ++ src/modules/SerialModule.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/Modules.cpp b/src/modules/Modules.cpp index 9d36116b6..7ff90d9ca 100644 --- a/src/modules/Modules.cpp +++ b/src/modules/Modules.cpp @@ -23,8 +23,10 @@ #endif #if defined(ARCH_ESP32) || defined(ARCH_NRF52) #include "modules/ExternalNotificationModule.h" +#if !defined(TTGO_T_ECHO) #include "modules/SerialModule.h" #endif +#endif /** * Create module instances here. If you are adding a new module, you must 'new' it here (or somewhere else) */ diff --git a/src/modules/SerialModule.cpp b/src/modules/SerialModule.cpp index f88ad6590..7f07c1bba 100644 --- a/src/modules/SerialModule.cpp +++ b/src/modules/SerialModule.cpp @@ -69,7 +69,7 @@ SerialModuleRadio::SerialModuleRadio() : SinglePortModule("SerialModuleRadio", P int32_t SerialModule::runOnce() { -#if defined(ARCH_ESP32) || defined(ARCH_NRF52) +#if (defined(ARCH_ESP32) || defined(ARCH_NRF52)) && !defined(TTGO_T_ECHO) /* Uncomment the preferences below if you want to use the module without having to configure it from the PythonAPI or WebUI. @@ -215,7 +215,7 @@ void SerialModuleRadio::sendPayload(NodeNum dest, bool wantReplies) ProcessMessage SerialModuleRadio::handleReceived(const MeshPacket &mp) { -#if defined(ARCH_ESP32) || defined(ARCH_NRF52) +#if (defined(ARCH_ESP32) || defined(ARCH_NRF52)) && !defined(TTGO_T_ECHO) if (moduleConfig.serial.enabled) { auto &p = mp.decoded;