Restored instruction to flush CC2420 buffer.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Wed, 11 Jan 2012 19:10:13 +0000 (19:10 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Wed, 11 Jan 2012 19:10:13 +0000 (19:10 +0000)
Fixes packet corruption but might drop under high usage.

git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1081 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

firmware/apps/radios/ccspi.c

index cca3305..197886a 100644 (file)
@@ -163,9 +163,9 @@ void ccspi_handle_fn( uint8_t const app,
       SETSS;
 
       //Flush buffer.
-      //CLRSS;
-      //ccspitrans8(0x08); //SFLUSHRX
-      //SETSS;
+      CLRSS;
+      ccspitrans8(0x08); //SFLUSHRX
+      SETSS;
       
       
       //Only should transmit length of one more than the reported