X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf2xx%2Frf212%2FRF212ActiveMessageP.nc;h=f5a47923ae3963a125867813d358a53b93b12a50;hb=b77cf86e72ab6faa4283b14fc4d80fca179381bd;hp=b641981ced3c25ae5b626663f229b209424fd2ca;hpb=82224deda747984e2c63677d9f5bab60c02c51aa;p=tinyos-2.x.git diff --git a/tos/chips/rf2xx/rf212/RF212ActiveMessageP.nc b/tos/chips/rf2xx/rf212/RF212ActiveMessageP.nc index b641981c..f5a47923 100644 --- a/tos/chips/rf2xx/rf212/RF212ActiveMessageP.nc +++ b/tos/chips/rf2xx/rf212/RF212ActiveMessageP.nc @@ -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()