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
Server - Added bac to mark zero priced slots as erroring
[tpg/opendispense2.git]
/
src
/
server
/
main.c
diff --git
a/src/server/main.c
b/src/server/main.c
index
d336b77
..
590e197
100644
(file)
--- a/
src/server/main.c
+++ b/
src/server/main.c
@@
-151,7
+151,8
@@
int main(int argc, char *argv[])
Server_Start();
- pthread_kill(gTimerThread, SIGKILL);
+ if(gTimerThread)
+ pthread_kill(gTimerThread, SIGKILL);
return 0;
}
@@
-236,6
+237,7
@@
int InitSerial(const char *File, int BaudRate)
switch(BaudRate)
{
+ case 1200: baud = B1200; break;
case 9600: baud = B9600; break;
default: close(fd); return -1;
}
UCC
git Repository :: git.ucc.asn.au