X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fapps%2Fradios%2Fccspi.c;h=df99cedee74229c38348c9bd9de31f063016e051;hp=f47e54c9dc42a77cf5d31a8e56ad57f97c685ce3;hb=488bacac294141af99fbec482db6ca21b8019a5e;hpb=0c53a410a2d82927261d39e74cd98ecc6b6eebf1 diff --git a/firmware/apps/radios/ccspi.c b/firmware/apps/radios/ccspi.c index f47e54c..df99ced 100644 --- a/firmware/apps/radios/ccspi.c +++ b/firmware/apps/radios/ccspi.c @@ -12,7 +12,7 @@ #include "platform.h" #include "command.h" - +#include //added for itoa #include #include #include @@ -140,7 +140,7 @@ void ccspi_handle_fn( uint8_t const app, break; case CCSPI_RX: #ifdef FIFOP - //Has there been an overflow? + //Has there been an overflow? if((!FIFO)&&FIFOP){ debugstr("Clearing overflow"); CLRSS; @@ -159,14 +159,16 @@ void ccspi_handle_fn( uint8_t const app, //ccspitrans8(0x3F|0x40); cmddata[0]=0xff; //to be replaced with length for(i=0;i> 8) & 0xFF; + + for(i=0;i