projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Shellcode is now only loaded when
[goodfet]
/
shellcode
/
chipcon
/
cc1110
/
reflex.c
diff --git
a/shellcode/chipcon/cc1110/reflex.c
b/shellcode/chipcon/cc1110/reflex.c
index
6bfec59
..
ced2f90
100644
(file)
--- a/
shellcode/chipcon/cc1110/reflex.c
+++ b/
shellcode/chipcon/cc1110/reflex.c
@@
-19,12
+19,13
@@
void main(){
RFTXRXIE=0;
//idle a bit.
RFTXRXIE=0;
//idle a bit.
- RFST=RFST_SIDLE;
- while(MARCSTATE!=MARC_STATE_IDLE);
+
//
RFST=RFST_SIDLE;
+
//
while(MARCSTATE!=MARC_STATE_IDLE);
while(1){
//Wait for the transmission.
RFST=RFST_SRX;
while(1){
//Wait for the transmission.
RFST=RFST_SRX;
+ while(MARCSTATE!=MARC_STATE_RX);
rssi=0;
//Wait for RSSI to settle.
sleepMillis(10);
rssi=0;
//Wait for RSSI to settle.
sleepMillis(10);