]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/mac/tkn154/RxEnableP.nc
Fixed a bug with the resource transfer
[tinyos-2.x.git] / tos / lib / mac / tkn154 / RxEnableP.nc
index b7dad3a8573d3a32994d536369032bea9d5baaa9..100ddac1ee3822829958e1752a00e3c457b2a9f8 100644 (file)
@@ -48,7 +48,7 @@ module RxEnableP
   {
     interface Ieee802154Debug as Debug;
     interface Timer<TSymbolIEEE802154> as RxEnableTimer;
-    interface Get<bool> as IsBeaconEnabledPAN;
+    interface GetNow<bool> as IsBeaconEnabledPAN;
     interface Get<ieee154_macPanCoordinator_t> as IsMacPanCoordinator;
     interface GetNow<bool> as IsTrackingBeacons;
     interface GetNow<uint32_t> as IncomingSfStart; 
@@ -95,7 +95,7 @@ implementation
       return IEEE154_TRANSACTION_OVERFLOW;
     if (RxOnTime > 0xFFFFFF || RxOnDuration > 0xFFFFFF)
       return IEEE154_INVALID_PARAMETER;
-    if (call IsBeaconEnabledPAN.get()){
+    if (call IsBeaconEnabledPAN.getNow()){
       if (call IsSendingBeacons.getNow() && call IsMacPanCoordinator.get()){
         // for OUTGOING SUPERFRAME
         lastBeaconTime = call OutgoingSfStart.getNow();