X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=firmware%2Flib%2Fcommand.c;h=dadffbd0e4fa0dd5a8fe28f3e4216a389e1e8d6a;hb=25829298efbada4ec4121745019cb68cca319402;hp=6d721084e80e4c6035b910939064fe6958ec119f;hpb=ce0bba3cfbf4844bdce1f6984af24d1f78c347f1;p=goodfet diff --git a/firmware/lib/command.c b/firmware/lib/command.c index 6d72108..dadffbd 100644 --- a/firmware/lib/command.c +++ b/firmware/lib/command.c @@ -1,7 +1,6 @@ /*! \file command.c \author Travis Goodspeed - - These functions manage command interpretation. + \brief These functions manage command interpretation. */ #include "command.h" @@ -9,7 +8,7 @@ #include unsigned char cmddata[256]; - +unsigned char silent=0; //! Transmit a string. void txstring(unsigned char app, @@ -23,7 +22,12 @@ void txstring(unsigned char app, serial_tx(*(str++)); } -//! Transmits a debugging string out of line. +/*! \brief Transmit a debug string. + + Transmits a debugging string that is to be printed + out of line by the client. This is just for record-keeping; + it is not considered a proper reply to a query. + */ void debugstr(const char *str){ txstring(0xFF,0xFF,str); } @@ -34,6 +38,8 @@ void txdata(unsigned char app, unsigned char verb, unsigned char len){ unsigned int i=0; + if(silent) + return; serial_tx(app); serial_tx(verb); serial_tx(len);