From 2d58b423831adab4cbd402b9f4d6dbec9bf0abb0 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Tue, 13 Oct 2026 16:59:16 +0200 Subject: [PATCH] tests pass --- slsDetectorSoftware/src/CallerSpecial.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/slsDetectorSoftware/src/CallerSpecial.cpp b/slsDetectorSoftware/src/CallerSpecial.cpp index 153890428..f4bb77f3b 100644 --- a/slsDetectorSoftware/src/CallerSpecial.cpp +++ b/slsDetectorSoftware/src/CallerSpecial.cpp @@ -1460,14 +1460,15 @@ std::string Caller::hdr(int action) { if (val == 0) { auto disable = defs::hdrParameters(); det->setHDR(disable, std::vector{det_id}); - os << val << '\n'; + os << ToString(disable) << '\n'; } else { throw RuntimeError("Did you mean to disable HDR? Then Please " "use '0' to do so. Unknown argument: " + args[0]); } } else { - auto val = StringTo(args[0]); + auto mode = StringTo(args[0]); + auto val = defs::hdrParameters(mode); det->setHDR(val, std::vector{det_id}); os << ToString(val) << '\n'; }