]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/byte_radio/PacketSerializerP.nc
switch to metric MHz for SMCLK, adjust constants, include SmclkManager
[tinyos-2.x.git] / tos / lib / byte_radio / PacketSerializerP.nc
index e495ef595c9646d5a3cfb41a7d2badb47bf9fa5e..2d21c682fc6b973fc5e37624c06c0b0b280f2dbf 100644 (file)
@@ -100,7 +100,7 @@ implementation {
   }
   
   async event void PhyPacketTx.sendHeaderDone() {
-    TransmitNextByte();
+      TransmitNextByte();
   }
 
   async event void RadioByteComm.txByteReady(error_t error) {
@@ -114,7 +114,9 @@ implementation {
   void TransmitNextByte() {
     message_radio_header_t* header = getHeader((message_t*) txBufPtr);
     if (byteCnt < header->length + sizeof(message_header_t) ) {  // send (data + header), compute crc
-        if(byteCnt == sizeof(message_header_t)) signal RadioTimeStamping.transmittedSFD(0, (message_t*)txBufPtr); 
+        if(byteCnt == sizeof(message_header_t)) {
+            signal RadioTimeStamping.transmittedSFD(0, (message_t*)txBufPtr);
+        }
         crc = crcByte(crc, ((uint8_t *)(txBufPtr))[byteCnt]);
         call RadioByteComm.txByte(((uint8_t *)(txBufPtr))[byteCnt++]);
     } else if (byteCnt == (header->length + sizeof(message_header_t))) {
@@ -124,7 +126,7 @@ implementation {
       ++byteCnt;
       call RadioByteComm.txByte((uint8_t)(crc >> 8));
     } else { /* (byteCnt > (header->length + sizeof(message_header_t)+1)) */
-        call PhyPacketTx.sendFooter();  
+        call PhyPacketTx.sendFooter();
     }
   }