From 993ba5926e5d9288c358a7fb8c4cc56739afe836 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Thu, 25 Nov 2021 10:00:40 +0100 Subject: [PATCH] update test fix --- .../src/slsDetectorServer_funcs.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c b/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c index e441378fa..577b9194a 100644 --- a/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c +++ b/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c @@ -4663,12 +4663,12 @@ int set_read_n_rows(int file_des) { "of %d\n", arg, READ_N_ROWS_MULTIPLE); LOG(logERROR, (mess)); - } + } // only for HW 2.0 (version = 3) else if (isHardwareVersion2()) { ret = FAIL; strcpy(mess, "Could not set number of rows. Only available for " - "Hardware Board version 2.0.\n"); + "Hardware Board version 2.0.\n"); LOG(logERROR, (mess)); } else #endif @@ -8682,8 +8682,16 @@ int get_flip_rows(int file_des) { functionNotImplemented(); #else // get only - retval = getFlipRows(); - LOG(logDEBUG1, ("flip rows retval: %u\n", retval)); + // only for HW 2.0 (version = 3) + if (isHardwareVersion2()) { + ret = FAIL; + strcpy(mess, "Could not set flip rows. Only available for " + "Hardware Board version 2.0.\n"); + LOG(logERROR, (mess)); + } else { + retval = getFlipRows(); + LOG(logDEBUG1, ("flip rows retval: %u\n", retval)); + } #endif return Server_SendResult(file_des, INT32, &retval, sizeof(retval)); }