]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/rf230/TrafficMonitorLayerP.nc
moving files from rf230 to rf2xx, prepare the support of rf212
[tinyos-2.x.git] / tos / chips / rf230 / TrafficMonitorLayerP.nc
index 75328ac5679f2f33c3ff1d31ba5d7f8bc1632b9b..ff9a42a3d3904f4bf50f464b5517d8bb9c7c486b 100644 (file)
@@ -50,7 +50,7 @@ module TrafficMonitorLayerP
                interface Neighborhood;
                interface NeighborhoodFlag;
                interface Tasklet;
-#ifdef RF230_DEBUG
+#ifdef RF2XX_DEBUG
                interface DiagMsg;
 #endif
        }
@@ -153,7 +153,7 @@ implementation
 
                call Tasklet.resume();
 
-#ifdef RF230_DEBUG
+#ifdef RF2XX_DEBUG
                if( ++debugCounter >= 10 && call DiagMsg.record() )
                {
                        debugCounter = 0;
@@ -226,6 +226,11 @@ implementation
                return call SubState.setChannel(channel);
        }
 
+       tasklet_async command uint8_t RadioState.getChannel()
+       {
+               return call SubState.getChannel();
+       }
+
        task void startStopTimer()
        {
                if( radioCmd == RADIO_CMD_TURNON )