git.ucc.asn.au
/
tpg
/
opendispense2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Misc changes - Fixed coke, shut up boot, fixed disabled users dispensing
[tpg/opendispense2.git]
/
src
/
server
/
handler_coke.c
diff --git
a/src/server/handler_coke.c
b/src/server/handler_coke.c
index
79d0a46
..
fb58f79
100644
(file)
--- a/
src/server/handler_coke.c
+++ b/
src/server/handler_coke.c
@@
-21,7
+21,7
@@
#include <pthread.h>
#define READ_TIMEOUT 2 // 2 seconds for ReadChar
#include <pthread.h>
#define READ_TIMEOUT 2 // 2 seconds for ReadChar
-#define TRACE_COKE
1
+#define TRACE_COKE
0
#if TRACE_COKE
# define TRACE(v...) do{printf("%s: ",__func__);printf(v);}while(0)
#if TRACE_COKE
# define TRACE(v...) do{printf("%s: ",__func__);printf(v);}while(0)
@@
-73,20
+73,21
@@
int Coke_InitHandler()
// Reset the slot names.
// - Dunno why this is needed, but the machine plays silly
// sometimes.
// Reset the slot names.
// - Dunno why this is needed, but the machine plays silly
// sometimes.
- Writef("n0 Slot0\n");
+ Writef("n0 Slot0\
r\
n");
if( !WaitForColon() )
{
if( !WaitForColon() )
{
- Writef("n1 Slot1\n");
+ Writef("n1 Slot1\
r\
n");
WaitForColon();
WaitForColon();
- Writef("n2 Slot2\n");
+ Writef("n2 Slot2\
r\
n");
WaitForColon();
WaitForColon();
- Writef("n3 Slot3\n");
+ Writef("n3 Slot3\
r\
n");
WaitForColon();
WaitForColon();
- Writef("n4 Slot4\n");
+ Writef("n4 Slot4\
r\
n");
WaitForColon();
WaitForColon();
- Writef("n5 Slot5\n");
+ Writef("n5 Slot5\r\n");
+ WaitForColon();
+ Writef("n6 Coke\r\n");
WaitForColon();
WaitForColon();
- Writef("n6 Coke\n");
Coke_int_UpdateSlotStatuses();
}
Coke_int_UpdateSlotStatuses();
}
UCC
git Repository :: git.ucc.asn.au