X-Git-Url: http://git.rot13.org/?p=goodfet;a=blobdiff_plain;f=firmware%2Fapps%2Fradios%2Fccspi.c;fp=firmware%2Fapps%2Fradios%2Fccspi.c;h=9c6b09cc8b09e6019c9a0f9b73bdcea6008a0d17;hp=7c72ddd2d018e097166588d3af38e9ce1098d4fe;hb=3a1dba16a3f6c27250e1e9566171abe48537cc89;hpb=5c28c526177571d53654b2a1e47ab5584a399fdf;ds=sidebyside diff --git a/firmware/apps/radios/ccspi.c b/firmware/apps/radios/ccspi.c index 7c72ddd..9c6b09c 100644 --- a/firmware/apps/radios/ccspi.c +++ b/firmware/apps/radios/ccspi.c @@ -249,9 +249,9 @@ void ccspi_handle_fn( uint8_t const app, SETSS; */ - //Only should transmit length of one more than the reported - // length of the frame, which holds the length byte: - txdata(app,verb,i&0x7F); + //Only should transmit a packet if the length is legal. + if(cmddata[0]&0x80) i=0; + txdata(app,verb,i); }else{ //No packet. txdata(app,verb,0);