Skip to content

Commit f609a52

Browse files
authored
Merge pull request ARMmbed#15177 from danluck/master
Fix overflow at extremely low RSSI
2 parents c08be76 + 352e6fb commit f609a52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

connectivity/lorawan/include/lorawan/LoRaRadio.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ typedef struct radio_fsk_packet_handler {
200200
/**
201201
* Storage for RSSI value of the received signal.
202202
*/
203-
int8_t rssi_value;
203+
int16_t rssi_value;
204204

205205
/**
206206
* Automated frequency correction value.
@@ -333,7 +333,7 @@ typedef struct radio_lora_packet_handler {
333333
/**
334334
* RSSI value in dBm for the received packet.
335335
*/
336-
int8_t rssi_value;
336+
int16_t rssi_value;
337337

338338
/**
339339
* Size of the transmitted or received packet.

0 commit comments

Comments
 (0)