Fixed bad coke status (slots not erroring if machine is unresponsive)
[tpg/opendispense2.git] / src / server / handler_coke.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.

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