X-Git-Url: https://git.jankratochvil.net/?p=mdsms.git;a=blobdiff_plain;f=setup.h;h=85a8113c97fd5d6a945c93667caeea2c9e695364;hp=c057cb990975b61d1fe4063bfea18ef560cee617;hb=b38a3d5fc26d8e7863f672507b3b7c9a3fbe54d7;hpb=8409e729e576b28d6c74c9fae7971aa64bd4a906 diff --git a/setup.h b/setup.h index c057cb9..85a8113 100644 --- a/setup.h +++ b/setup.h @@ -5,16 +5,21 @@ #define CONFIG_MAIN "/etc/" PACKAGE "rc" /* global configuration file */ #define CONFIG_HOME "/." PACKAGE "rc" /* user-local cfg file, $HOME is prepended automatically */ -#define DEF_DEVICE "/dev/mobildock" /* --device default */ +#define DEF_DEVICE "/dev/mdsms" /* --device default */ #define DEF_LOGNAME "" /* --log default */ #ifndef DEF_LOCKFILE #define DEF_LOCKFILE "/var/lock/LCK..%s" /* --lockfile default */ #endif -#define DEF_MAXRETRY 10 /* --maxretry default */ -#define DEF_READTIME 60*60 /* --readtime default */ +#define DEF_BAUD 19200 /* --baud default */ +#define DEF_MAXRETRY 3 /* --maxretry default */ +#define DEF_READTIME_MOBILDOCK 3600 /* --readtime default for MobilDock */ +#define DEF_READTIME 5 /* --readtime default */ +#define EXT_READTIME 10 /* --readtime multiply for long running commands */ #define DEF_CHARTIME 10 /* --chartime default (500ms per 80char=6.25ms recommended by Siemens */ #define DEF_CMDTIME 500 /* --cmdtime default */ +#define WORD_NET "net" /* load as network logo */ +#define WORD_GROUP "group" /* load as group graphics */ #define MAXCONFIG 4096 /* maximum allowed size of any configuration file */ #define MAXCFGARGS 256 /* maximum allowed number of arguments in cfg file */ #define MAXCFGLOOP 5 /* maximum number of recursive opens in cfg files */ @@ -37,3 +42,5 @@ #define BODYLOAD 200 /* number of bytes to read when body not on command line */ #define ERROR_SUBSTR1 "ERROR" /* first failure ind. substring in A1 response */ #define ERROR_SUBSTR2 "\nError:" /* second such, this one from MobilDock */ +#define REPL_NULLCHAR ' ' /* char for replace when '\0' is read from device */ +#define RECEIVE_TEST 0 /* debugging test of --receive */