mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-21 19:30:03 +02:00
bianries in after merge
This commit is contained in:
commit
3144f40068
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -66,32 +66,47 @@ int main(int argc, char *argv[]) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// help message
|
// help message
|
||||||
char helpMessage[MAX_STR_LENGTH];
|
const size_t helpMessageSize = 1200;
|
||||||
memset(helpMessage, 0, MAX_STR_LENGTH);
|
char helpMessage[helpMessageSize];
|
||||||
sprintf(
|
{
|
||||||
helpMessage,
|
memset(helpMessage, 0, helpMessageSize);
|
||||||
|
int len = snprintf(
|
||||||
|
helpMessage, helpMessageSize,
|
||||||
"Usage: %s [arguments]\n"
|
"Usage: %s [arguments]\n"
|
||||||
"Possible arguments are:\n"
|
"Possible arguments are:\n"
|
||||||
"\t-v, --version : Software version\n"
|
"\t-v, --version : Software version\n"
|
||||||
"\t-p, --port <port> : TCP communication port with client. \n"
|
"\t-p, --port <port> : TCP communication port with client. "
|
||||||
|
"\n"
|
||||||
"\t-g, --nomodule : [Mythen3][Gotthard2] \n"
|
"\t-g, --nomodule : [Mythen3][Gotthard2] \n"
|
||||||
"\t Generic or No Module mode. Skips "
|
"\t Generic or No Module mode. Skips "
|
||||||
"detector type checks. \n"
|
"detector type checks. \n"
|
||||||
"\t-f, --phaseshift <value> : [Gotthard] only. Sets phase shift. \n"
|
"\t-f, --phaseshift <value> : [Gotthard] only. Sets phase shift. \n"
|
||||||
"\t-d, --devel : Developer mode. Skips firmware checks. \n"
|
"\t-d, --devel : Developer mode. Skips firmware "
|
||||||
"\t-u, --update : Update mode. Skips firmware checks and "
|
"checks. \n"
|
||||||
|
"\t-u, --update : Update mode. Skips firmware checks "
|
||||||
|
"and "
|
||||||
"initial detector setup. \n"
|
"initial detector setup. \n"
|
||||||
"\t-i, --ignore-config : "
|
"\t-i, --ignore-config : "
|
||||||
"[Eiger][Jungfrau][Gotthard][Gotthard2] \n"
|
"[Eiger][Jungfrau][Gotthard][Gotthard2] \n"
|
||||||
"\t Ignore config file. \n"
|
"\t Ignore config file. \n"
|
||||||
"\t-m, --master <master> : [Eiger][Mythen3][Gotthard][Gotthard2] \n"
|
"\t-m, --master <master> : "
|
||||||
"\t Set Master to 0 or 1. Precedence over "
|
"[Eiger][Mythen3][Gotthard][Gotthard2] \n"
|
||||||
|
"\t Set Master to 0 or 1. Precedence "
|
||||||
|
"over "
|
||||||
"config file. Only for virtual servers except Eiger. \n"
|
"config file. Only for virtual servers except Eiger. \n"
|
||||||
"\t-t, --top <top> : [Eiger] Set Top to 0 or 1. Precedence "
|
"\t-t, --top <top> : [Eiger] Set Top to 0 or 1. "
|
||||||
|
"Precedence "
|
||||||
"over config file. \n"
|
"over config file. \n"
|
||||||
"\t-s, --stopserver : Stop server. Do not use as it is created "
|
"\t-s, --stopserver : Stop server. Do not use as it is "
|
||||||
|
"created "
|
||||||
"by control server \n\n",
|
"by control server \n\n",
|
||||||
argv[0]);
|
argv[0]);
|
||||||
|
if (len >= helpMessageSize) {
|
||||||
|
LOG(logERROR, ("Help for Server command line arguments size %d "
|
||||||
|
"exceed capacity of %d characters\n",
|
||||||
|
len, helpMessageSize));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// parse command line for config
|
// parse command line for config
|
||||||
static struct option long_options[] = {
|
static struct option long_options[] = {
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
#define APIRECEIVER 0x211124
|
#define APIRECEIVER 0x211124
|
||||||
#define APIGUI 0x211124
|
#define APIGUI 0x211124
|
||||||
|
|
||||||
#define APIEIGER 0x220317
|
#define APICTB 0x220318
|
||||||
#define APICTB 0x220317
|
#define APIGOTTHARD 0x220318
|
||||||
#define APIGOTTHARD 0x220317
|
#define APIGOTTHARD2 0x220318
|
||||||
#define APIGOTTHARD2 0x220317
|
#define APIJUNGFRAU 0x220318
|
||||||
#define APIJUNGFRAU 0x220317
|
#define APIMYTHEN3 0x220318
|
||||||
#define APIMYTHEN3 0x220317
|
#define APIMOENCH 0x220318
|
||||||
#define APIMOENCH 0x220317
|
#define APIEIGER 0x220318
|
||||||
|
Loading…
x
Reference in New Issue
Block a user