1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

pkg/openwsn/contrib/radio_hal: fix rssi conversion

This commit is contained in:
Francisco Molina 2020-12-11 13:57:06 +01:00
parent 6d4d00ebe9
commit 49c90cd517
No known key found for this signature in database
GPG Key ID: 3E94EAC3DBDEEDA8

View File

@ -310,7 +310,7 @@ void radio_getReceivedFrame(uint8_t *bufRead,
OpenWSN includes IEEE802154_FCS_LEN in its length value */
*lenRead = size + IEEE802154_FCS_LEN;
/* get rssi, lqi & crc */
*rssi = rx_info.rssi;
*rssi = ieee802154_rssi_to_dbm(rx_info.rssi);
*lqi = rx_info.lqi;
/* only valid crc frames are currently accepted */
*crc = 1;