Skip to content

Commit

Permalink
Merge pull request #15464 from hallard/LoRaWAN_sleep_radio_scheduled_tx
Browse files Browse the repository at this point in the history
LoRaWAN fix over consumption on scheduled tx
  • Loading branch information
0xc0170 committed Nov 24, 2023
2 parents 08c7171 + 9c3c88c commit 36045bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions connectivity/lorawan/lorastack/mac/LoRaMac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1137,6 +1137,9 @@ lorawan_status_t LoRaMac::schedule_tx()
if (backoff_time != 0) {
tr_debug("DC enforced: Transmitting in %lu ms", backoff_time);
_can_cancel_tx = true;
if (_device_class != CLASS_C) {
_lora_phy->put_radio_to_sleep();
}
_lora_time.start(_params.timers.backoff_timer, backoff_time);
}
return LORAWAN_STATUS_OK;
Expand Down

0 comments on commit 36045bd

Please sign in to comment.