X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fapps%2Fradios%2Fccspi.c;h=8a8d7e8d3be2d83fe824809b7d8952b3bc3ca8be;hp=eb7417ad09784b22521443895a9c56caec3e6a04;hb=5faf3dc1d40b8afe5fe438f6808a4d6f1d169580;hpb=2ff5698bfa62a906813b899f91e1c89b30242798 diff --git a/firmware/apps/radios/ccspi.c b/firmware/apps/radios/ccspi.c index eb7417a..8a8d7e8 100644 --- a/firmware/apps/radios/ccspi.c +++ b/firmware/apps/radios/ccspi.c @@ -139,7 +139,7 @@ void ccspi_handle_fn( uint8_t const app, #ifdef FIFOP //Has there been an overflow? if((!FIFO)&&FIFOP){ - debugstr("Clearing overflow"); + //debugstr("Clearing overflow"); CLRSS; ccspitrans8(0x08); //SFLUSHRX SETSS; @@ -149,7 +149,7 @@ void ccspi_handle_fn( uint8_t const app, if(FIFOP&&FIFO){ //Wait for completion. while(SFD); - + //Get the packet. CLRSS; ccspitrans8(CCSPI_RXFIFO | 0x40); @@ -160,9 +160,11 @@ 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 // length of the frame, which holds the length byte: txdata(app,verb,cmddata[0]+1);