Skip to content

Commit e5e8e79

Browse files
author
Hasnain Virk
committed
Immutable Payload from radio
Received data buffer from radio driver should be immutable.
1 parent 11901f1 commit e5e8e79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/lorawan/LoRaRadio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ typedef struct radio_events {
154154
* FSK : N/A (set to 0)
155155
* LoRa: SNR value in dB
156156
*/
157-
mbed::Callback<void(uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr)> rx_done;
157+
mbed::Callback<void(const uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr)> rx_done;
158158

159159
/**
160160
* Callback when Reception is timed out

0 commit comments

Comments
 (0)