// == CODE ===
int Snack_InitHandler()
{
- giSnack_SerialFD = open(gsSnack_SerialPort, O_RDWR | O_NOCTTY | O_NONBLOCK);
+ giSnack_SerialFD = InitSerial(gsSnack_SerialPort, 9600);
if( giSnack_SerialFD == -1 ) {
fprintf(stderr, "ERROR: Unable to open snack serial port ('%s')\n", gsSnack_SerialPort);
}
- InitSerial(giSnack_SerialFD, 9600);
-
regcomp(&gSnack_ResponseRegex, "^(\\d\\d\\d)(.*)$", REG_EXTENDED);
return 0;
}
extern void Load_Itemlist(void);
extern void Server_Start(void);
extern int giServer_Port;
-extern char* gsItemListFile;
-extern char* gsCoke_SerialPort;
-extern char* gsSnack_SerialPort;
+extern char *gsItemListFile;
+extern char *gsCoke_SerialPort;
+extern char *gsSnack_SerialPort;
// === GLOBALS ===
int giDebugLevel = 0;