updated help

This commit is contained in:
Erik Frojdh committed 2026-10-01 08:09:37 +02:00
1 parent 50b7ace06e
commit 7d0ce1820e
1 file changed
+8 -3
+8 -3
View File
@@ -1013,6 +1013,9 @@ std::string Caller::counters(int action) {
"enabled. Each element in list can be 0 - 2 and must be non "
"repetitive. Enabling counters sets vth dacs to remembered "
"values and disabling sets them to disabled values."
"Accepts both space separated and comma separated list of indices"
"optionally enclosed in brackets. Example: 0 1 2 or 0,1,2 or "
"[0,1,2] or [0 1 2]"
<< '\n';
} else if (action == defs::GET_ACTION) {
if (!args.empty()) {
@@ -1026,9 +1029,8 @@ std::string Caller::counters(int action) {
}
// accepts both "0 1 2" and "0,1,2"
auto counters = StringTo<std::vector<int>>(join(args, ','));
if (std::any_of(counters.cbegin(), counters.cend(), [](int val) {
return (val < 0 || val > 2);
})) {
if (std::any_of(counters.cbegin(), counters.cend(),
[](int val) { return (val < 0 || val > 2); })) {
throw RuntimeError("Invalid counter indices list. Example: 0 1 2");
}
// convert vector to counter enable mask
@@ -1217,6 +1219,9 @@ std::string Caller::rx_dbitlist(int action) {
"receiver list, the data size will be bigger if the number of "
"samples is not divisible by 8 as every signal bit is padded to "
"the next byte when combining all the samples in the receiver."
"Accepts both space separated and comma separated list of indices"
"optionally enclosed in brackets. Example: 0 11 37 or 3,10,15 or "
"[62,21] or [0 1 2]"
<< '\n';
} else if (action == defs::GET_ACTION) {
if (!args.empty()) {