[riot-notifications] [RIOT-OS/RIOT] drivers/ata8510: Microchip ATA8510 radio module driver, with test (#14852)

Antonio Galea notifications at github.com
Mon Nov 16 10:48:30 CET 2020


@ant9000 commented on this pull request.



> +        int rssi = 0;
+        for (i = 0; i < dev->rssi.len; i++) {
+            rssi += dev->rssi.data[i];
+        }
+        rssi /= dev->rssi.len;
+        *dbm = (rssi >> 1) - 135;

The conversion from RSSI to dBm,? Yes, it's taken form the datasheet.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14852#discussion_r524043260
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201116/8c8c293d/attachment.htm>


More information about the notifications mailing list