// === 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);
{
case 1200: baud = B1200; break;
case 9600: baud = B9600; break;
+ case 115200: baud = B115200; break;
default: close(fd); return -1;
}