diff --git a/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c b/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c index f2cb795c6..2df69676c 100644 --- a/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c +++ b/slsDetectorServers/slsDetectorServer/src/slsDetectorServer_funcs.c @@ -6495,8 +6495,8 @@ int get_veto_photon(int file_des) { if (ret != FAIL) { int nch = NCHAN; sendData(file_des, &nch, sizeof(nch), INT32); - sendData(file_des, gainRetvals, sizeof(gainRetvals), INT32); - sendData(file_des, retvals, sizeof(retvals), INT32); + sendData(file_des, gainRetvals, sizeof(int) * NCHAN, INT32); + sendData(file_des, retvals, sizeof(int) * NCHAN, INT32); } if (retvals != NULL) { free(retvals); diff --git a/slsDetectorSoftware/tests/test-CmdProxy-rx.cpp b/slsDetectorSoftware/tests/test-CmdProxy-rx.cpp index 8088d69a8..02eca29d5 100644 --- a/slsDetectorSoftware/tests/test-CmdProxy-rx.cpp +++ b/slsDetectorSoftware/tests/test-CmdProxy-rx.cpp @@ -132,7 +132,7 @@ TEST_CASE("rx_missingpackets", "[.cmd][.rx]") { std::ostringstream oss; proxy.Call("rx_missingpackets", {}, -1, GET, oss); std::string s = (oss.str()).erase(0, strlen("rx_missingpackets [")); - // REQUIRE(std::stoi(s) == 0); + REQUIRE(std::stoi(s) == 0); } } diff --git a/slsDetectorSoftware/tests/test-CmdProxy.cpp b/slsDetectorSoftware/tests/test-CmdProxy.cpp index 224cf6e80..89c736663 100644 --- a/slsDetectorSoftware/tests/test-CmdProxy.cpp +++ b/slsDetectorSoftware/tests/test-CmdProxy.cpp @@ -1233,7 +1233,7 @@ TEST_CASE("start", "[.cmd]") { auto prev_period = det.getPeriod().tsquash("inconsistent period in test"); det.setExptime(-1, std::chrono::microseconds(200)); det.setPeriod(std::chrono::milliseconds(1)); - det.setNumberOfFrames(10000); + det.setNumberOfFrames(2000); { std::ostringstream oss; proxy.Call("start", {}, -1, PUT, oss); @@ -1274,7 +1274,7 @@ TEST_CASE("stop", "[.cmd]") { auto prev_period = det.getPeriod().tsquash("inconsistent period in test"); det.setExptime(-1, std::chrono::microseconds(200)); det.setPeriod(std::chrono::milliseconds(1)); - det.setNumberOfFrames(10000); + det.setNumberOfFrames(2000); det.startDetector(); { std::ostringstream oss; @@ -1322,7 +1322,7 @@ TEST_CASE("status", "[.cmd]") { auto prev_period = det.getPeriod().tsquash("inconsistent period in test"); det.setExptime(-1, std::chrono::microseconds(200)); det.setPeriod(std::chrono::milliseconds(1)); - det.setNumberOfFrames(10000); + det.setNumberOfFrames(2000); det.startDetector(); { std::ostringstream oss;