From 128d20b29056e992c09a69bebeda56f1c40b5ef4 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Sat, 17 Sep 2022 12:18:32 -0500 Subject: [PATCH] tx_enabled fix (#1699) * Defaults * Print --- src/mesh/NodeDB.h | 2 +- src/mesh/RadioLibInterface.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mesh/NodeDB.h b/src/mesh/NodeDB.h index 30a7be94e..fef989306 100644 --- a/src/mesh/NodeDB.h +++ b/src/mesh/NodeDB.h @@ -13,7 +13,7 @@ DeviceState versions used to be defined in the .proto file but really only this #define here. */ -#define DEVICESTATE_CUR_VER 17 +#define DEVICESTATE_CUR_VER 18 #define DEVICESTATE_MIN_VER DEVICESTATE_CUR_VER extern DeviceState devicestate; diff --git a/src/mesh/RadioLibInterface.cpp b/src/mesh/RadioLibInterface.cpp index 9cb88ae93..262a10c18 100644 --- a/src/mesh/RadioLibInterface.cpp +++ b/src/mesh/RadioLibInterface.cpp @@ -125,13 +125,13 @@ ErrorCode RadioLibInterface::send(MeshPacket *p) if (config.lora.region != Config_LoRaConfig_RegionCode_UNSET) { if (disabled || !config.lora.tx_enabled) { - DEBUG_MSG("send - lora_tx_disabled\n"); + DEBUG_MSG("send - !config.lora.tx_enabled\n"); packetPool.release(p); return ERRNO_DISABLED; } } else { - DEBUG_MSG("send - lora_tx_disabled because RegionCode_Unset\n"); + DEBUG_MSG("send - lora tx disable because RegionCode_Unset\n"); packetPool.release(p); return ERRNO_DISABLED; } @@ -140,8 +140,8 @@ ErrorCode RadioLibInterface::send(MeshPacket *p) #else - if (disabled || config.lora.tx_disabled) { - DEBUG_MSG("send - lora_tx_disabled\n"); + if (disabled || !config.lora.tx_enabled) { + DEBUG_MSG("send - !config.lora.tx_enabled\n"); packetPool.release(p); return ERRNO_DISABLED; }