X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fapps%2Fradios%2Fccspi.c;h=a578c926338a01c5a26a79b8ff7758bef4084901;hp=8a8d7e8d3be2d83fe824809b7d8952b3bc3ca8be;hb=f22686562a6c161be8a8c58bd83e46fa0c7ae1e8;hpb=5faf3dc1d40b8afe5fe438f6808a4d6f1d169580 diff --git a/firmware/apps/radios/ccspi.c b/firmware/apps/radios/ccspi.c index 8a8d7e8..a578c92 100644 --- a/firmware/apps/radios/ccspi.c +++ b/firmware/apps/radios/ccspi.c @@ -357,6 +357,12 @@ void ccspi_handle_fn( uint8_t const app, //Wait for last packet to TX. //while(ccspi_status()&BIT3); + + //Flush TX buffer. + CLRSS; + ccspitrans8(0x09); //SFLUSHTX + SETSS; + //Load the packet. CLRSS; @@ -373,12 +379,7 @@ void ccspi_handle_fn( uint8_t const app, //Wait for the pulse on SFD, after which the packet has been sent. while(!SFD); while(SFD); - - //Flush TX buffer. - CLRSS; - ccspitrans8(0x09); //SFLUSHTX - SETSS; - + txdata(app,verb,0); #else debugstr("Can't TX a packet with SFD and FIFOP definitions.");