Commit cd8724a2 authored by Mark Tearle's avatar Mark Tearle
Browse files

gsCoke_ModbusPort should be giCoke_ModbusPort

parent 6b38df8f
......@@ -49,7 +49,7 @@ tHandler gCoke_Handler = {
Coke_DoDispense
};
const char *gsCoke_ModbusAddress = "130.95.13.73";
int gsCoke_ModbusPort = 502;
int giCoke_ModbusPort = 502;
modbus_t *gCoke_Modbus;
time_t gtCoke_LastDispenseTime;
time_t gtCoke_LastReconnectTime;
......@@ -127,7 +127,7 @@ int Coke_int_ConnectToPLC(void)
if( !gCoke_Modbus )
{
gCoke_Modbus = modbus_new_tcp(gsCoke_ModbusAddress, gsCoke_ModbusPort);
gCoke_Modbus = modbus_new_tcp(gsCoke_ModbusAddress, giCoke_ModbusPort);
if( !gCoke_Modbus )
{
perror("coke - modbus_new_tcp");
......
......@@ -31,7 +31,7 @@ extern int gbServer_RunInBackground;
extern int giServer_Port;
extern const char *gsItemListFile;
extern const char *gsCoke_ModbusAddress;
extern int gsCoke_ModbusPort;
extern int giCoke_ModbusPort;
extern const char *gsDoor_SerialPort;
extern bool gbSyslogEnabled;
......@@ -134,7 +134,7 @@ int main(int argc, char *argv[])
gbSyslogEnabled = (Config_GetValue_Bool("disable_syslog", 0) == 0);
gsCoke_ModbusAddress = Config_GetValue("coke_modbus_address", 0);
gsCoke_ModbusPort = Config_GetValue_Int("coke_modbus_port", 0);
giCoke_ModbusPort = Config_GetValue_Int("coke_modbus_port", 0);
signal(SIGINT, sigint_handler);
signal(SIGTERM, sigint_handler);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment