From fc1696b74f8850387f9e7fee0b585105ad2398ee Mon Sep 17 00:00:00 2001 From: Kimmo Vaisanen Date: Fri, 16 Feb 2018 13:53:07 +0200 Subject: [PATCH] Do only set the MacDone if the MAC is not in class c --- features/lorawan/lorastack/mac/LoRaMac.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features/lorawan/lorastack/mac/LoRaMac.cpp b/features/lorawan/lorastack/mac/LoRaMac.cpp index 39ed23cec7..8739a6c022 100644 --- a/features/lorawan/lorastack/mac/LoRaMac.cpp +++ b/features/lorawan/lorastack/mac/LoRaMac.cpp @@ -744,7 +744,9 @@ void LoRaMac::on_radio_rx_error( void ) mlme.get_confirmation().status = LORAMAC_EVENT_INFO_STATUS_RX2_ERROR; - _params.flags.bits.mac_done = 1; + if (_params.dev_class != CLASS_C) { + _params.flags.bits.mac_done = 1; + } } }