From 456b96446faa73e42635d3788220a7a3352d94b6 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Mon, 6 Apr 2020 17:59:06 +0200 Subject: [PATCH] WIP --- .../mythen3DetectorServer/slsDetectorFunctionList.c | 2 +- slsDetectorServers/slsDetectorServer/src/slsDetectorServer.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/slsDetectorServers/mythen3DetectorServer/slsDetectorFunctionList.c b/slsDetectorServers/mythen3DetectorServer/slsDetectorFunctionList.c index 18d111da8..c1f79f889 100644 --- a/slsDetectorServers/mythen3DetectorServer/slsDetectorFunctionList.c +++ b/slsDetectorServers/mythen3DetectorServer/slsDetectorFunctionList.c @@ -1526,7 +1526,7 @@ enum runStatus getRunStatus(){ if(virtual_status == 0){ LOG(logINFOBLUE, ("Status: IDLE\n")); return IDLE; - }else{ + } else{ LOG(logINFOBLUE, ("Status: RUNNING\n")); return RUNNING; } diff --git a/slsDetectorServers/slsDetectorServer/src/slsDetectorServer.c b/slsDetectorServers/slsDetectorServer/src/slsDetectorServer.c index b1c137129..07441cbae 100755 --- a/slsDetectorServers/slsDetectorServer/src/slsDetectorServer.c +++ b/slsDetectorServers/slsDetectorServer/src/slsDetectorServer.c @@ -114,6 +114,10 @@ int main(int argc, char *argv[]) { { int i; for (i = 0; i < argc; ++i) { + if (!strcasecmp(argv[i], "-port")) { + i +=2; + continue; + } if (i > 0) { strcat(cmd, " "); }