Fix RSSI range

This commit is contained in:
Moritz 'Morty' Strübe 2013-08-20 09:41:08 +02:00
parent 1c77ffca72
commit d08bb2d871
1 changed files with 1 additions and 1 deletions

View File

@ -1306,7 +1306,7 @@ public class CC2420 extends Radio802154 implements USARTListener {
public void setRSSI(int power) {
final int minp = -128 + RSSI_OFFSET;
final int maxp = 128 + RSSI_OFFSET;
final int maxp = 127 + RSSI_OFFSET;
if (power < minp) {
power = -minp;
}