From 964c0f7bc1e96ab777a144e45a68918b61098118 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Tue, 27 Jan 2026 09:28:01 +0300 Subject: [PATCH] Make setting parameter in console printing actual parameter value. In some cases, it would not be equal to the requested value. --- flix/cli.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flix/cli.ino b/flix/cli.ino index bd67c30..3250d0e 100644 --- a/flix/cli.ino +++ b/flix/cli.ino @@ -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()); }