From d8ca9bb6b5b0d00e4303cbb80ed1088aee510f45 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Tue, 12 May 2020 13:49:08 +0200 Subject: [PATCH] eiger virtual server fix --- .../eigerDetectorServer/slsDetectorFunctionList.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/slsDetectorServers/eigerDetectorServer/slsDetectorFunctionList.c b/slsDetectorServers/eigerDetectorServer/slsDetectorFunctionList.c index 33d18fa99..c64681ea7 100644 --- a/slsDetectorServers/eigerDetectorServer/slsDetectorFunctionList.c +++ b/slsDetectorServers/eigerDetectorServer/slsDetectorFunctionList.c @@ -227,9 +227,7 @@ u_int64_t getFirmwareAPIVersion() { } void readDetectorNumber() { -#ifdef VIRTUAL - return; -#endif +#ifndef VIRTUAL char output[255]; FILE *sysFile = popen(IDFILECOMMAND, "r"); fgets(output, sizeof(output), sysFile); @@ -238,6 +236,7 @@ void readDetectorNumber() { if (isControlServer) { LOG(logINFOBLUE, ("Detector ID: %u\n", detid)); } +#endif } u_int32_t getDetectorNumber() {