add lora send bypass for debugging
This commit is contained in:
@@ -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] = {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user