]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/rf2xx/rf212/RF212ActiveMessageP.nc
make the software ack timeout configurable
[tinyos-2.x.git] / tos / chips / rf2xx / rf212 / RF212ActiveMessageP.nc
index b641981ced3c25ae5b626663f229b209424fd2ca..f5a47923ae3963a125867813d358a53b93b12a50 100644 (file)
@@ -118,9 +118,13 @@ implementation
                call IEEE154MessageLayer.createAckReply(data, ack);
        }
 
+#ifndef SOFTWAREACK_TIMEOUT
+#define SOFTWAREACK_TIMEOUT    1000
+#endif
+
        async command uint16_t SoftwareAckConfig.getAckTimeout()
        {
-               return (uint16_t)(800 * RADIO_ALARM_MICROSEC);
+               return (uint16_t)(SOFTWAREACK_TIMEOUT * RADIO_ALARM_MICROSEC);
        }
 
        tasklet_async command void SoftwareAckConfig.reportChannelError()