lrwn: Fix typo in snr clamp.

This commit is contained in:
Orne Brocaar 2024-07-09 11:57:20 +01:00
parent 4a33f67ed6
commit f153eb8ca0

View File

@ -2437,7 +2437,7 @@ impl PowerLevel {
}
pub fn to_bytes(&self) -> [u8; 2] {
let wor_snr = self.wor_snr.clamp(-12, 11);
let wor_snr = self.wor_snr.clamp(-20, 11);
let wor_rssi = self.wor_rssi.clamp(-142, -15);
// Encode values