From: John Hodge Date: Wed, 5 Jan 2011 06:28:48 +0000 (+0845) Subject: Fixed behavior in coke (maybe) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=c11136c3e42375573736b4ac2b6aadc7897114b4;p=tpg%2Fopendispense2.git Fixed behavior in coke (maybe) --- diff --git a/src/server/handler_coke.c b/src/server/handler_coke.c index cd02fa7..abd3506 100644 --- a/src/server/handler_coke.c +++ b/src/server/handler_coke.c @@ -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);