mirror of https://github.com/contiki-ng/mspsim
Added LQI access method. Patch by Moritz Struebe.
This commit is contained in:
parent
d2f2f4cea9
commit
9677af71dd
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue