Skip to content

Commit 25ea827

Browse files
committed
cad test 3
1 parent df22b9d commit 25ea827

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/lora_utils.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ extern bool packetIsBeacon;
3636

3737
extern std::vector<ReceivedPacket> receivedPackets;
3838

39-
bool operationDone = true;
40-
bool transmitFlag = true;
39+
bool operationDone = true;
40+
bool transmitFlag = true;
41+
42+
#define DIFS_SLOTS 2 // Number of secuential CAD slots to consider a free channel to Tx
43+
int backoffMax = 4; // Max Backoff value (number of CAD slots to wait before Tx)
4144

4245
#ifdef HAS_SX1262
4346
SX1262 radio = new Module(RADIO_CS_PIN, RADIO_DIO1_PIN, RADIO_RST_PIN, RADIO_BUSY_PIN);
@@ -63,9 +66,6 @@ bool transmitFlag = true;
6366
int rssi, freqError;
6467
float snr;
6568

66-
#define DIFS_SLOTS 2 // Number of secuential CAD slots to consider a free channel to Tx
67-
int backoffMax = 4; // Max Backoff value (number of CAD slots to wait before Tx)
68-
6969

7070
namespace LoRa_Utils {
7171

0 commit comments

Comments
 (0)