X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fplatforms%2FeyesIFX%2Fbyte_radio%2FUartManchPhyP.nc;h=0b39150e5c7797c645332f4ee96c1b058a897d06;hb=4c72ab7118395fe791aef9aafe29d501a94f6967;hp=2294ef6a4d1eba7a13c563182d2eef010d4d51e4;hpb=a06d8962cacb303b05074f2c45fda451ecb42a67;p=tinyos-2.x.git diff --git a/tos/platforms/eyesIFX/byte_radio/UartManchPhyP.nc b/tos/platforms/eyesIFX/byte_radio/UartManchPhyP.nc index 2294ef6a..0b39150e 100644 --- a/tos/platforms/eyesIFX/byte_radio/UartManchPhyP.nc +++ b/tos/platforms/eyesIFX/byte_radio/UartManchPhyP.nc @@ -74,8 +74,8 @@ implementation STATE_FOOTER_DONE } phyState_t; -#define PREAMBLE_LENGTH 4 -#define BYTE_TIME 9 +#define PREAMBLE_LENGTH 2 +#define BYTE_TIME 21 #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;