Beginnings of info flash support. It isn't very good.
[goodfet] / firmware / apps / radios / nrf.c
index 1e1f937..bb1ed23 100644 (file)
@@ -91,12 +91,12 @@ void nrfhandle(unsigned char app,
               unsigned long len){
   unsigned long i;
   
+  //Drop CE to passify radio.
   RADIOPASSIVE;
-  
   //Raise !SS to end transaction, just in case we forgot.
   P5OUT|=SS;
   nrfsetup();
-    
+  
   switch(verb){
     //PEEK and POKE might come later.
   case READ:  
@@ -151,12 +151,14 @@ void nrfhandle(unsigned char app,
     txdata(app,verb,32);
     break;
   case NRF_TX:
+  case NRF_TX_FLUSH:
   default:
     debugstr("Not yet supported.");
     txdata(app,verb,0);
     break;
   }
   
+
   P5OUT|=SS;//End session
   RADIOACTIVE;
 }