Skip to content

Commit f6decc0

Browse files
author
Kimmo Vaisanen
committed
Initialize mcps_indication status
_mcps_indication.status is not initialized properly and it can cause incorrect status value to be returned.
1 parent 5e62d17 commit f6decc0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

features/lorawan/lorastack/mac/LoRaMac.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ void LoRaMac::on_radio_rx_done(uint8_t *payload, uint16_t size, int16_t rssi,
292292
_mcps_indication.is_ack_recvd = false;
293293
_mcps_indication.dl_frame_counter = 0;
294294
_mcps_indication.type = MCPS_UNCONFIRMED;
295+
_mcps_indication.status = LORAMAC_EVENT_INFO_STATUS_OK;
295296

296297
if (_device_class != CLASS_C) {
297298
_lora_phy.put_radio_to_sleep();

0 commit comments

Comments
 (0)