X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fserver%2Fhandler_coke.c;h=da9fa18d2501326c252c670ac7617cf0fcfd7ae0;hb=39d4f8129c6413d3e41916041d239ea6d3041228;hp=4eb371000f6ed277a296cdba77a9f770256e3258;hpb=9509d10fe69bf2084adbe3c7714a9b1fa20e8318;p=tpg%2Fopendispense2.git diff --git a/src/server/handler_coke.c b/src/server/handler_coke.c index 4eb3710..da9fa18 100644 --- a/src/server/handler_coke.c +++ b/src/server/handler_coke.c @@ -130,9 +130,15 @@ void Coke_int_UpdateSlotStatuses(void) pthread_mutex_lock(&gCoke_Mutex); WaitForColon(); + #if TRACE_COKE + printf("Coke_int_UpdateSlotStatuses: send d7\n"); + #endif Writef("d7\r\n"); // Update slot statuses if( WaitForColon() ) goto ret; - Writef("s\n"); + #if TRACE_COKE + printf("Coke_int_UpdateSlotStatuses: send s\n"); + #endif + Writef("s\r\n"); ReadLine(sizeof tmp, tmp); // Read back what we just said for( i = 0; i <= 6; i ++ ) @@ -144,6 +150,9 @@ void Coke_int_UpdateSlotStatuses(void) #endif goto ret; // I give up :( } + #if TRACE_COKE + printf("Coke_int_UpdateSlotStatuses: tmp = '%s'\n", tmp); + #endif Coke_int_GetSlotStatus(tmp, i); }