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;