From: travisutk Date: Wed, 6 Jan 2010 16:19:22 +0000 (+0000) Subject: READ command only returns a byte if it is supposed to by the command structure. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=9ed45dd9c71025fa8a68a0a072c3425b0d429bee READ command only returns a byte if it is supposed to by the command structure. This shouldn't cause problems, but it might. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@257 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/firmware/apps/chipcon/chipcon.c b/firmware/apps/chipcon/chipcon.c index 135d2a6..92542fc 100644 --- a/firmware/apps/chipcon/chipcon.c +++ b/firmware/apps/chipcon/chipcon.c @@ -142,8 +142,10 @@ void cchandle(unsigned char app, break; case READ: //Write a command and return 1-byte reply. cccmd(len); - ccread(1); + if(cmddata[0]&0x4) + ccread(1); txdata(app,verb,1); + break; case WRITE: //Write a command with no reply. cccmd(len);