diff --git a/src/server/handler_door.c b/src/server/handler_door.c index 62fb8f960b9c4c2974a63abc12553cb98937b538..3359ed16fa11952151269a5bcaa39f3b990d8a09 100644 --- a/src/server/handler_door.c +++ b/src/server/handler_door.c @@ -93,7 +93,7 @@ int Door_DoDispense(int User, int Item) return 1; } - door_serial_handle = InitSerial(gsDoor_SerialPort, 9600); + door_serial_handle = InitSerial(gsDoor_SerialPort, 1200); if( write(door_serial_handle, "ATH1\n", 5) != 5 ) { fprintf(stderr, "Unable to open door (sending ATH1)\n"); diff --git a/src/server/main.c b/src/server/main.c index d336b77d42f5ec65e9d7fa2f03d8468e514b6a96..faf07e3e94108bb7f9c7f29a6a16285604befcf4 100644 --- a/src/server/main.c +++ b/src/server/main.c @@ -236,6 +236,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; }