]> git.tnoah.ca Git - lora-radio.git/commit
Fix RSSI offset for pre-msg RSSI notification
authorMatt Corallo <649246+TheBlueMatt@users.noreply.github.com>
Thu, 26 Sep 2019 22:22:05 +0000 (22:22 +0000)
committerGitHub <noreply@github.com>
Thu, 26 Sep 2019 22:22:05 +0000 (22:22 +0000)
commit30a07a32cecd324c03c04896a63b560cb29d93ca
treeba58dd21dddfa2921fd57ba76d390c920fe69d2a
parent1275c5876d35adf803f5d966976e18e0048dccbd
Fix RSSI offset for pre-msg RSSI notification

last_rssi is a large negative number, with rssi_offset being +292,
intended to be added to put the value inside the range of a single byte uint.
Before sending the data message, a RSSI message is automatically sent,
which is quite nice, but the value ends up overflowing the 8-bit uint, giving
a bogus value.
RNode_Firmware.ino