]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/eyesIFX/byte_radio/UartManchPhyP.nc
baudrates revisited
[tinyos-2.x.git] / tos / platforms / eyesIFX / byte_radio / UartManchPhyP.nc
index 3021ff79a8dac3f0e75e4638d7b5c34eedf6e6b8..c52a9f5c6fa3a5f1406ce78b717dd342f03b68fb 100644 (file)
@@ -74,8 +74,8 @@ implementation
         STATE_FOOTER_DONE
     } phyState_t;
 
-#define PREAMBLE_LENGTH   4
-#define BYTE_TIME         18
+#define PREAMBLE_LENGTH   2
+#define BYTE_TIME         TDA5250_32KHZ_BYTE_TIME
 #define PREAMBLE_BYTE     0x55
 #define SYNC_BYTE         0xFF
 #define SFD_BYTE          0x50
@@ -198,7 +198,7 @@ implementation
         atomic {
             switch(phyState) {
                 case STATE_PREAMBLE:
-                    if(preambleCount > 0) {
+                    if(preambleCount > 1) {
                         preambleCount--;
                     } else {
                         phyState = STATE_SYNC;