From ac64afe7470920ec32f27b3439b8a6189df414e1 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil <33750417+thattil@users.noreply.github.com> Date: Thu, 19 Jan 2023 10:44:17 +0100 Subject: [PATCH] print also the level when using command line to set/get patloop, patnloop, patwait, patwaittime (#621) --- slsDetectorSoftware/src/CmdProxy.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/slsDetectorSoftware/src/CmdProxy.cpp b/slsDetectorSoftware/src/CmdProxy.cpp index 36eb2602f..1a36e7f3a 100644 --- a/slsDetectorSoftware/src/CmdProxy.cpp +++ b/slsDetectorSoftware/src/CmdProxy.cpp @@ -2839,6 +2839,7 @@ std::string CmdProxy::PatternLoopAddresses(int action) { if (cmd != "patlimits") { GetLevelAndUpdateArgIndex(action, "patloop", level, iArg, nGetArgs, nPutArgs); + os << level << ' '; } if (action == defs::GET_ACTION) { auto t = @@ -2878,6 +2879,7 @@ std::string CmdProxy::PatternLoopCycles(int action) { int level = -1, iArg = 0, nGetArgs = 0, nPutArgs = 1; GetLevelAndUpdateArgIndex(action, "patnloop", level, iArg, nGetArgs, nPutArgs); + os << level << ' '; if (action == defs::GET_ACTION) { auto t = det->getPatternLoopCycles(level, std::vector{det_id}); os << OutString(t) << '\n'; @@ -2912,6 +2914,7 @@ std::string CmdProxy::PatternWaitAddress(int action) { int level = -1, iArg = 0, nGetArgs = 0, nPutArgs = 1; GetLevelAndUpdateArgIndex(action, "patwait", level, iArg, nGetArgs, nPutArgs); + os << level << ' '; if (action == defs::GET_ACTION) { auto t = det->getPatternWaitAddr(level, std::vector{det_id}); os << OutStringHex(t, 4) << '\n'; @@ -2945,6 +2948,7 @@ std::string CmdProxy::PatternWaitTime(int action) { int level = -1, iArg = 0, nGetArgs = 0, nPutArgs = 1; GetLevelAndUpdateArgIndex(action, "patwaittime", level, iArg, nGetArgs, nPutArgs); + os << level << ' '; if (action == defs::GET_ACTION) { auto t = det->getPatternWaitTime(level, std::vector{det_id}); os << OutString(t) << '\n';