Skip to content

Commit

Permalink
loramac: fix broken rx1 interval
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkucera committed Dec 3, 2022
1 parent f605ed1 commit 7418722
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/lora/node/src/mac/LoRaMac.c
Expand Up @@ -1354,15 +1354,16 @@ lora_mac_process_radio_rx_timeout(struct os_event *ev)
g_lora_mac_data.rx_slot, 0);

if (LoRaMacDeviceClass != CLASS_C) {
Radio.Sleep( );
if (g_lora_mac_data.rx_slot == RX_SLOT_WIN_2) {
Radio.Sleep( );
/* Let the ACK retry timer handle confirmed transmissions */
if (!LM_F_NODE_ACK_REQ()) {
lora_mac_tx_service_done(0);
}
}
} else {
/* Rx timeout for class C devices should only occur in rx window 1 */
Radio.Sleep( );
assert(g_lora_mac_data.rx_slot == RX_SLOT_WIN_1);
lora_mac_rx_on_window2();
}
Expand Down

0 comments on commit 7418722

Please sign in to comment.