* fix for adcvpp p
This commit is contained in:
Dhanya Thattil 2022-10-20 11:53:23 +02:00 committed by GitHub
parent f9f485c99e
commit 3fa3e05bfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2593,9 +2593,9 @@ std::string CmdProxy::AdcVpp(int action) {
} else if (args.size() > 2 || args.size() < 1) {
WrongNumberOfParameters(1);
}
det->setADCVpp(StringTo<int>(args[1]), mV,
det->setADCVpp(StringTo<int>(args[0]), mV,
std::vector<int>{det_id});
os << args[1] << (mV ? " mV\n" : "\n");
os << args[0] << (mV ? " mV\n" : "\n");
} else {
throw RuntimeError("Unknown action");
}