Skip to content

Commit 36045bd

Browse files
authored
Merge pull request #15464 from hallard/LoRaWAN_sleep_radio_scheduled_tx
LoRaWAN fix over consumption on scheduled tx
2 parents 08c7171 + 9c3c88c commit 36045bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

connectivity/lorawan/lorastack/mac/LoRaMac.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -1137,6 +1137,9 @@ lorawan_status_t LoRaMac::schedule_tx()
11371137
if (backoff_time != 0) {
11381138
tr_debug("DC enforced: Transmitting in %lu ms", backoff_time);
11391139
_can_cancel_tx = true;
1140+
if (_device_class != CLASS_C) {
1141+
_lora_phy->put_radio_to_sleep();
1142+
}
11401143
_lora_time.start(_params.timers.backoff_timer, backoff_time);
11411144
}
11421145
return LORAWAN_STATUS_OK;

0 commit comments

Comments
 (0)