From: andreaskoepke Date: Tue, 24 Jun 2008 14:43:47 +0000 (+0000) Subject: stop timer X-Git-Tag: release_tinyos_2_1_0_0~184 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=d02c0ea4c5f7241148a95ae5874ee1ad40899526 stop timer --- diff --git a/tos/platforms/eyesIFX/byte_radio/Uart4b6bPhyP.nc b/tos/platforms/eyesIFX/byte_radio/Uart4b6bPhyP.nc index b8c9d613..8976f47d 100644 --- a/tos/platforms/eyesIFX/byte_radio/Uart4b6bPhyP.nc +++ b/tos/platforms/eyesIFX/byte_radio/Uart4b6bPhyP.nc @@ -304,6 +304,7 @@ implementation bufByte |= data & 0x03; bufByte <<= 2; phyState = STATE_DATA_MIDDLE; + call RxByteTimer.stop(); signal PhyPacketRx.recvHeaderDone(SUCCESS); call RxByteTimer.start(byteTime); } @@ -313,6 +314,7 @@ implementation } else { phyState = STATE_DATA_HIGH; + call RxByteTimer.stop(); signal PhyPacketRx.recvHeaderDone(SUCCESS); call RxByteTimer.start(byteTime); } @@ -334,6 +336,7 @@ implementation decodedByte = sixBitToNibble[((bufByte & 0x0f)<<2) | (data >> 4)]; if(decodedByte != ILLEGAL_CODE) { phyState = STATE_DATA_LOW; + call RxByteTimer.stop(); signal SerializerRadioByteComm.rxByteReady((bufByte & 0xf0) | decodedByte); bufByte = (data & 0x0f) << 2; call RxByteTimer.start(byteTime); @@ -349,6 +352,7 @@ implementation decodedByte = sixBitToNibble[data & 0x3f]; if(decodedByte != ILLEGAL_CODE) { phyState = STATE_DATA_HIGH; + call RxByteTimer.stop(); signal SerializerRadioByteComm.rxByteReady(bufByte | decodedByte); call RxByteTimer.start(byteTime); }