Fixed bad coke status (slots not erroring if machine is unresponsive)
authorJohn Hodge <[email protected]>
Mon, 21 Feb 2011 03:47:38 +0000 (11:47 +0800)
committerJohn Hodge <[email protected]>
Mon, 21 Feb 2011 03:47:38 +0000 (11:47 +0800)
- Also removed a debug

src/server/handler_coke.c
src/server/server.c

index f7d27b6..cd8caec 100644 (file)
@@ -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.
index 5686ab7..01e2d84 100644 (file)
@@ -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 = "";
        }

UCC git Repository :: git.ucc.asn.au