Added LQI access method. Patch by Moritz Struebe.

This commit is contained in:
Niclas Finne 2012-05-11 11:48:55 +02:00
parent d2f2f4cea9
commit 9677af71dd
1 changed files with 4 additions and 0 deletions

View File

@ -1286,6 +1286,10 @@ public class CC2420 extends Chip implements USARTListener, RFListener, RFSource
corrval = lqi;
}
public int getLQI() {
return corrval;
}
public void setRSSI(int power) {
final int minp = -128 + RSSI_OFFSET;
final int maxp = 128 + RSSI_OFFSET;