- // immediately; the general rule is: as long as a component
- // owns the token it has exclusive access to the radio
- call Token.release();
+ // (or pass it back to BeaconTransmitP if
+ // we are not tracking beacons)
+ if (call IsTrackingBeacons.getNow())
+ call Token.release();
+ else
+ call TokenToBeaconTransmit.transfer();