Skip to content

Commit

Permalink
Sleep Radio in between DC scheduled
Browse files Browse the repository at this point in the history
  • Loading branch information
hallard committed Nov 10, 2023
1 parent 72f27ce commit 9c3c88c
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 9c3c88c

Please sign in to comment.