diff options
| -rw-r--r-- | target/radio/radio.c | 16 | 
1 files changed, 7 insertions, 9 deletions
| diff --git a/target/radio/radio.c b/target/radio/radio.c index 90bc47f3..bf893699 100644 --- a/target/radio/radio.c +++ b/target/radio/radio.c @@ -419,7 +419,7 @@ low() {  #define DRATE_E		10  #define DRATE_M		163 -#define PACKET_LEN	128 +#define PACKET_LEN	255  /* This are from the table for 433MHz */ @@ -528,19 +528,17 @@ main ()  	/* Set P2_0 to output */  	radio_init ();  	delay(100); -	RFST = RFST_SIDLE; -	delay(100); -	RFST = RFST_STX; -	delay(100); -	for (;;); -#if 0 +  	for (;;) {  		uint8_t	i; -		for (i = 0; i < PACKET_LEN; i++) { +		RFST = RFST_SIDLE; +		delay(100); +		RFST = RFST_STX; +		for (i = 0; i < PACKET_LEN - 1; i++) {  			while (!RFTXRXIF);  			RFTXRXIF = 0;  			RFD = 0x55;  		} +		delay(100);  	} -#endif  } | 
