X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fapps%2Fradios%2Fccspi.c;h=277a44070b4327d96f7a82a441d4046e3eb21691;hp=377a5f0cbe4c2a66a6e1cbf8926ee271da9d00c5;hb=0b92a77db417a3f3b0482a5c5444c50042674fda;hpb=a031b4a563978102c664466d1e91a9c3ab0553dd diff --git a/firmware/apps/radios/ccspi.c b/firmware/apps/radios/ccspi.c index 377a5f0..277a440 100644 --- a/firmware/apps/radios/ccspi.c +++ b/firmware/apps/radios/ccspi.c @@ -166,7 +166,9 @@ void ccspi_handle_fn( uint8_t const app, CLRSS; ccspitrans8(0x08); //SFLUSHRX SETSS; - txdata(app,verb,cmddata[0]+2); + //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); }else{ //No packet. txdata(app,verb,0);