X-Git-Url: https://git.ucc.asn.au/?p=tpg%2Fopendispense2.git;a=blobdiff_plain;f=src%2Fserver%2Fhandler_coke.c;fp=src%2Fserver%2Fhandler_coke.c;h=a52e373852d4c4e1df6be3664683c552f51c0cf9;hp=34b9d2ef93d4b25a312b4f14ce1e65f014aae8d7;hb=cd8724a2a7c36e3a791687ae1498a6d504dd6788;hpb=6b38df8f8ab2f7064aa6bd61692a10005a944e6f diff --git a/src/server/handler_coke.c b/src/server/handler_coke.c index 34b9d2e..a52e373 100644 --- a/src/server/handler_coke.c +++ b/src/server/handler_coke.c @@ -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");