From b8913d7420311a9eb7da923a8fc645ac4ca25a45 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 21 Feb 2011 11:47:38 +0800 Subject: [PATCH] Fixed bad coke status (slots not erroring if machine is unresponsive) - Also removed a debug --- src/server/handler_coke.c | 3 +++ src/server/server.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 = ""; } -- 2.20.1