flip rows only for hw2.0 for jungfrau

This commit is contained in:
maliakal_d 2021-11-25 09:30:04 +01:00
parent 2a5116f49a
commit a9d61526ef

View File

@ -540,7 +540,11 @@ TEST_CASE("fliprows", "[.cmd]") {
Detector det;
CmdProxy proxy(&det);
auto det_type = det.getDetectorType().squash();
if (det_type == defs::EIGER || det_type == defs::JUNGFRAU) {
bool jungfrauhw2 = false;
if (det_type == defs::JUNGFRAU && det.getSerialNumber() & 0x20000) {
jungfrauhw2 = true;
}
if (det_type == defs::EIGER || jungfrauhw2) {
auto previous = det.getFlipRows();
auto previous_numudp = det.getNumberofUDPInterfaces();
if (det_type == defs::JUNGFRAU) {