projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Code for receiving packets.
[goodfet]
/
shellcode
/
chipcon
/
cc1110
/
txpacket.c
diff --git
a/shellcode/chipcon/cc1110/txpacket.c
b/shellcode/chipcon/cc1110/txpacket.c
index
333e3d7
..
fa0ad98
100644
(file)
--- a/
shellcode/chipcon/cc1110/txpacket.c
+++ b/
shellcode/chipcon/cc1110/txpacket.c
@@
-8,7
+8,7
@@
void main(){
unsigned char len=packet[0], i=0;
RFST=RFST_STX; //Begin transmit.
while(i!=len+1){
- while(RFTXRXIF); //Wait for byte to be ready.
+ while(
!
RFTXRXIF); //Wait for byte to be ready.
RFTXRXIF=0; //Clear the flag.
RFD=packet[i++]; //Send the next byte.