make LPT port configurable
This commit is contained in:
@@ -20,6 +20,8 @@ char* phone_device=NULL; // phone device for gammu, for example: "/dev/ttyACM0"
|
||||
char* phone_model=NULL; // gammu phone model, for example: "at"
|
||||
char* phone_connection=NULL; // gammu phone connection type, for example: "at"
|
||||
char* recipient_number=NULL; // recipient of sms alerts
|
||||
bool lpt_enable=false; // control usage of LPT port to reset target devices
|
||||
int lpt_port=0x378; // LPT port in hex(0x378 is usually LPT1)
|
||||
bool loop_locked=false ; // flag for locking main loop while config re-reading
|
||||
int failures_first=3 ; // count of failures while hosts checking, that triggers first SMS sending
|
||||
pid_t mainloop_clone_pid; // pid of clone process, that containt main loop
|
||||
@@ -52,6 +54,8 @@ void init()
|
||||