]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
stop timer
authorandreaskoepke <andreaskoepke>
Tue, 24 Jun 2008 14:43:47 +0000 (14:43 +0000)
committerandreaskoepke <andreaskoepke>
Tue, 24 Jun 2008 14:43:47 +0000 (14:43 +0000)
tos/platforms/eyesIFX/byte_radio/Uart4b6bPhyP.nc

index b8c9d6132d8649b256904333ce32ce2233036c15..8976f47d6b34fe8c9bbaa6a05dabde7b957a185e 100644 (file)
@@ -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);
                         }