diff --git a/platform/msb430/dev/cc1020-internal.h b/platform/msb430/dev/cc1020-internal.h index 13d33c223..e0d06ad5e 100644 --- a/platform/msb430/dev/cc1020-internal.h +++ b/platform/msb430/dev/cc1020-internal.h @@ -86,7 +86,7 @@ #define RX_CURRENT 0x86 // CC1020 driver configuration -#define CC1020_BUFFERSIZE 250 +#define CC1020_BUFFERSIZE 128 // PDI (Data in) is on P21 #define PDO (P2IN & 0x01) diff --git a/platform/msb430/dev/cc1020.c b/platform/msb430/dev/cc1020.c index 43ed32d3e..47ee0814c 100644 --- a/platform/msb430/dev/cc1020.c +++ b/platform/msb430/dev/cc1020.c @@ -76,8 +76,8 @@ static void cc1020_reset(void); // current mode of cc1020 chip static enum cc1020_state cc1020_state = CC1020_OFF; static volatile uint8_t cc1020_rxbuf[HDRSIZE + CC1020_BUFFERSIZE]; -static uint8_t cc1020_txbuf[PREAMBLESIZE + HDRSIZE + CC1020_BUFFERSIZE + - TAILSIZE]; +static uint8_t cc1020_txbuf[PREAMBLESIZE + SYNCWDSIZE + HDRSIZE + + CC1020_BUFFERSIZE + TAILSIZE]; //static volatile enum cc1020_rxstate cc1020_rxstate = CC1020_RX_SEARCHING; // number of bytes in receive and transmit buffers respectively.