// === GLOBALS ===
int giDebugLevel = 0;
+ int gbNoCostMode = 0;
const char *gsCokebankPath = "cokebank.db";
// - Functions called every 20s (or so)
#define ciMaxPeriodics 10
gsCoke_ModbusAddress = Config_GetValue("coke_modbus_address", 0);
giServer_Port = Config_GetValue_Int("server_port", 0);
gsItemListFile = Config_GetValue("items_file", 0);
-
+
+ gbNoCostMode = (Config_GetValue_Bool("test_mode", 0) == 1);
+
signal(SIGINT, sigint_handler);
signal(SIGTERM, sigint_handler);