From 25ea82737ab2012aba69167f5e6d464e13e429fb Mon Sep 17 00:00:00 2001 From: "Ricardo Guzman (Richonguzman)" Date: Wed, 10 Jun 2026 10:46:07 -0400 Subject: [PATCH] cad test 3 --- src/lora_utils.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lora_utils.cpp b/src/lora_utils.cpp index 5df3a04..14f5b6e 100644 --- a/src/lora_utils.cpp +++ b/src/lora_utils.cpp @@ -36,8 +36,11 @@ extern bool packetIsBeacon; extern std::vector receivedPackets; -bool operationDone = true; -bool transmitFlag = true; +bool operationDone = true; +bool transmitFlag = true; + +#define DIFS_SLOTS 2 // Number of secuential CAD slots to consider a free channel to Tx +int backoffMax = 4; // Max Backoff value (number of CAD slots to wait before Tx) #ifdef HAS_SX1262 SX1262 radio = new Module(RADIO_CS_PIN, RADIO_DIO1_PIN, RADIO_RST_PIN, RADIO_BUSY_PIN); @@ -63,9 +66,6 @@ bool transmitFlag = true; int rssi, freqError; float snr; -#define DIFS_SLOTS 2 // Number of secuential CAD slots to consider a free channel to Tx -int backoffMax = 4; // Max Backoff value (number of CAD slots to wait before Tx) - namespace LoRa_Utils {