Chipcon packet handling is coming along, but transmissions are still dropped. Maybe...
[goodfet] / shellcode / chipcon / cc1110 / rxpacket.c
index 145d08f..a294aac 100644 (file)
@@ -24,7 +24,7 @@ void main(){
   RFST=RFST_SRX;
   while(MARCSTATE!=MARC_STATE_RX);
   
-  while(i<len+1){
+  while(i<len+1){ //len+3 if status is appended.
     while(!RFTXRXIF); //Wait for byte to be ready.
     RFTXRXIF=0;      //Clear the flag.
     
@@ -36,6 +36,7 @@ void main(){
       HALT;
 
   }
-  RFST = RFST_SIDLE; //End transmit.
+  RFST = RFST_SIDLE; //End receive.
   HALT;
 }
+