From 13b4025443ff4d02cc5b8b429e23c83e3a8beb97 Mon Sep 17 00:00:00 2001 From: acidburns Date: Sun, 1 Feb 2026 19:34:28 +0100 Subject: [PATCH] add lora send bypass for debugging --- include/config.h | 1 + src/lora_transport.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/include/config.h b/include/config.h index c680fb8..250e727 100644 --- a/include/config.h +++ b/include/config.h @@ -75,6 +75,7 @@ constexpr uint32_t WATCHDOG_TIMEOUT_SEC = 120; constexpr bool ENABLE_HA_DISCOVERY = true; constexpr bool SERIAL_DEBUG_MODE = true; constexpr bool SERIAL_DEBUG_DUMP_JSON = true; +constexpr bool LORA_SEND_BYPASS = false; constexpr uint8_t NUM_SENDERS = 1; inline constexpr uint16_t EXPECTED_SENDER_IDS[NUM_SENDERS] = { diff --git a/src/lora_transport.cpp b/src/lora_transport.cpp index b69d190..7ea0612 100644 --- a/src/lora_transport.cpp +++ b/src/lora_transport.cpp @@ -30,6 +30,9 @@ void lora_init() { } bool lora_send(const LoraPacket &pkt) { + if (LORA_SEND_BYPASS) { + return true; + } uint8_t buffer[5 + LORA_MAX_PAYLOAD + 2]; size_t idx = 0; buffer[idx++] = pkt.protocol_version;