Make setting parameter in console printing actual parameter value.

In some cases, it would not be equal to the requested value.
This commit is contained in:
Oleg Kalachev
2026-01-27 09:28:01 +03:00
parent 40bdaacedb
commit 964c0f7bc1

View File

@@ -94,7 +94,7 @@ void doCommand(String str, bool echo = false) {
} else if (command == "p") {
bool success = setParameter(arg0.c_str(), arg1.toFloat());
if (success) {
print("%s = %g\n", arg0.c_str(), arg1.toFloat());
print("%s = %g\n", arg0.c_str(), getParameter(arg0.c_str()));
} else {
print("Parameter not found: %s\n", arg0.c_str());
}