From: John Hodge Date: Mon, 21 Feb 2011 03:47:38 +0000 (+0800) Subject: Fixed bad coke status (slots not erroring if machine is unresponsive) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;ds=sidebyside;h=b8913d7420311a9eb7da923a8fc645ac4ca25a45;p=tpg%2Fopendispense2.git Fixed bad coke status (slots not erroring if machine is unresponsive) - Also removed a debug --- diff --git a/src/server/handler_coke.c b/src/server/handler_coke.c index f7d27b6..cd8caec 100644 --- a/src/server/handler_coke.c +++ b/src/server/handler_coke.c @@ -60,6 +60,9 @@ int Coke_InitHandler() fprintf(stderr, "ERROR: Unable to open coke serial port ('%s')\n", gsCoke_SerialPort); } else { + int i; + for( i = 0; i < 7; i ++ ) + gaCoke_CachedStatus[i] = -1; // Reset the slot names. // - Dunno why this is needed, but the machine plays silly // sometimes. diff --git a/src/server/server.c b/src/server/server.c index 5686ab7..01e2d84 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -303,7 +303,7 @@ void Server_ParseClientCommand(tClient *Client, char *CommandString) if( Server_int_ParseArgs(1, CommandString, &command, &args, NULL) ) { - printf("command=%s, args=%s\n", command, args); +// printf("command=%s, args=%s\n", command, args); // Is this an error? (just ignore for now) //args = ""; }