]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/rf230/RF230ActiveMessageP.nc
Proper MSP_BSL_FLAGS for telosa and telosb based platforms using TMI modular tos...
[tinyos-2.x.git] / tos / chips / rf230 / RF230ActiveMessageP.nc
index b241ee58a62a52f8628540a40f2a9b0e192c812f..0337bbd92c54f054489c4ee75e334a556f9c05f5 100644 (file)
@@ -184,7 +184,7 @@ implementation
        enum
        {
                TRAFFIC_UPDATE_PERIOD = 100,    // in milliseconds
-               TRAFFIC_MAX_BYTES = (uint16_t)(TRAFFIC_UPDATE_PERIOD * 1000.0 / 32),    // 3125
+               TRAFFIC_MAX_BYTES = (uint16_t)(TRAFFIC_UPDATE_PERIOD * 1000UL / 32),    // 3125
        };
 
        async command uint16_t TrafficMonitorConfig.getUpdatePeriod()