Shellcode is now only loaded when
[goodfet] / shellcode / chipcon / cc1110 / reflex.c
index 6bfec59..ced2f90 100644 (file)
@@ -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);