This repository was archived by the owner on Apr 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -112,10 +112,12 @@ bool LoRaWANClass::init(void)
112
112
LoRa_Settings.Channel_Hopping = 0x00 ; // 0x00 no channel hopping, 0x01 channel hopping
113
113
114
114
// Set default rx delay and window
115
- LoRa_Settings.Rx1_Delay = 5000 ; // Thing stack seems to be 5000 ms (so Rx2_delay 6000 ms)
116
- LoRa_Settings.Rx2_Delay = 6000 ; // Rx2_Delay >= Rx1_Delay + RX1_Window
117
115
LoRa_Settings.RX1_Window = 1000 ;
118
116
LoRa_Settings.RX2_Window = 1000 ;
117
+
118
+ LoRa_Settings.Rx1_Delay = 5000 ; // Thing stack seems to be 5000 ms (so Rx2_delay 6000 ms)
119
+ LoRa_Settings.Rx2_Delay = LoRa_Settings.Rx1_Delay + LoRa_Settings.RX1_Window ;
120
+
119
121
120
122
// Initialise buffer for data to transmit
121
123
memset (Data_Tx, 0x00 , sizeof (Data_Tx));
@@ -507,7 +509,6 @@ void LoRaWANClass::update(void)
507
509
bool isConfirmed = ((Message_Rx.MAC_Header & 0xE0 )>>5 ) == 5 ? true : false ; // MType
508
510
uint8_t fPort = Message_Rx.Frame_Port ;
509
511
if (lora.messageCallback ) lora.messageCallback (&Buffer_Rx, isConfirmed, fPort );
510
- // Buffer_Rx.Counter = 0x00; // clear counter for the next cycle
511
512
Rx_Status = NEW_RX;
512
513
Serial.println (" Data received over RX1" );
513
514
You can’t perform that action at this time.
0 commit comments