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'; }