Fixed behavior in coke (maybe)
authorJohn Hodge <[email protected]>
Wed, 5 Jan 2011 06:28:48 +0000 (15:13 +0845)
committerJohn Hodge <[email protected]>
Wed, 5 Jan 2011 06:28:48 +0000 (15:13 +0845)
src/server/handler_coke.c

index cd02fa7..abd3506 100644 (file)
@@ -70,11 +70,6 @@ int Coke_CanDispense(int User, int Item)
        // Ask the coke machine
        sprintf(tmp, "s%i\r\n", Item);
        write(giCoke_SerialFD, tmp, 4);
-       
-       if( WaitForColon() ) {
-               fprintf(stderr, "Coke machine timed out (after initial)\n");
-               return -2;      // -EMYBAD
-       }
 
        ret = ReadLine(sizeof(tmp)-1, tmp);
        printf("ret = %i, tmp = '%s'\n", ret, tmp);

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