renamed radio method isReceiverOn() to isRadioOn()
fixed bug in Msp802154Radio causing all packets from non-802154-radios to be dropped
This commit is contained in:
parent
6d2d05b146
commit
86f1c34692
13 changed files with 37 additions and 25 deletions
|
@ -310,7 +310,7 @@ public class PowerTracker extends VisPlugin {
|
|||
this.mote = mote;
|
||||
this.radio = mote.getInterfaces().getRadio();
|
||||
|
||||
radioWasOn = radio.isReceiverOn();
|
||||
radioWasOn = radio.isRadioOn();
|
||||
if (radio.isTransmitting()) {
|
||||
lastRadioState = RadioState.TRANSMITTING;
|
||||
} else if (radio.isReceiving()) {
|
||||
|
@ -350,7 +350,7 @@ public class PowerTracker extends VisPlugin {
|
|||
/* Await next radio event */
|
||||
if (radio.isTransmitting()) {
|
||||
lastRadioState = RadioState.TRANSMITTING;
|
||||
} else if (!radio.isReceiverOn()) {
|
||||
} else if (!radio.isRadioOn()) {
|
||||
lastRadioState = RadioState.IDLE;
|
||||
} else if (radio.isInterfered()) {
|
||||
lastRadioState = RadioState.INTERFERED;
|
||||
|
@ -359,7 +359,7 @@ public class PowerTracker extends VisPlugin {
|
|||
} else {
|
||||
lastRadioState = RadioState.IDLE;
|
||||
}
|
||||
radioWasOn = radio.isReceiverOn();
|
||||
radioWasOn = radio.isRadioOn();
|
||||
lastUpdateTime = now;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue