cad test 3

This commit is contained in:
Ricardo Guzman (Richonguzman)
2026-06-10 10:46:07 -04:00
parent df22b9dbc0
commit 25ea82737a
+5 -5
View File
@@ -36,8 +36,11 @@ extern bool packetIsBeacon;
extern std::vector<ReceivedPacket> 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 {