From: travisutk Date: Sat, 24 Dec 2011 14:42:29 +0000 (+0000) Subject: Modified CCSPI sniffing. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=5faf3dc1d40b8afe5fe438f6808a4d6f1d169580;ds=sidebyside Modified CCSPI sniffing. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1074 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- 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);