From 9c3c88c96e0dc6a567cfb0258ecfdcf960d0c913 Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 10 Nov 2023 11:51:42 +0100 Subject: [PATCH] Sleep Radio in between DC scheduled --- connectivity/lorawan/lorastack/mac/LoRaMac.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/connectivity/lorawan/lorastack/mac/LoRaMac.cpp b/connectivity/lorawan/lorastack/mac/LoRaMac.cpp index 7ea1ec2f195..fca30bad90b 100644 --- a/connectivity/lorawan/lorastack/mac/LoRaMac.cpp +++ b/connectivity/lorawan/lorastack/mac/LoRaMac.cpp @@ -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;