Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loramac: fix broken rx1 interval #2913

Merged
merged 1 commit into from Dec 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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