projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Send data
[fw/altos]
/
target
/
radio
/
radio.c
diff --git
a/target/radio/radio.c
b/target/radio/radio.c
index 90bc47f31f649e7c4674bbe9586b9e2990e0137c..bf893699666c9191569847b80f0ba354d5026492 100644
(file)
--- a/
target/radio/radio.c
+++ b/
target/radio/radio.c
@@
-419,7
+419,7
@@
low() {
#define DRATE_E 10
#define DRATE_M 163
#define DRATE_E 10
#define DRATE_M 163
-#define PACKET_LEN
128
+#define PACKET_LEN
255
/* This are from the table for 433MHz */
/* This are from the table for 433MHz */
@@
-528,19
+528,17
@@
main ()
/* Set P2_0 to output */
radio_init ();
delay(100);
/* 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 (;;) {
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;
}
while (!RFTXRXIF);
RFTXRXIF = 0;
RFD = 0x55;
}
+ delay(100);
}
}
-#endif
}
}