Debugger: Fix input.analog.send validation.

This commit is contained in:
Unknown W. Brackets
2022-10-29 17:38:37 -07:00
parent 1fb7fe02b0
commit 8cefb98e97
+1 -1
View File
@@ -227,7 +227,7 @@ static bool AnalogValue(DebuggerRequest &req, float *value, const char *name) {
}
double val = node->value.toNumber();
if (val < 1.0 || val > 1.0) {
if (val < -1.0 || val > 1.0) {
req.Fail(StringFromFormat("Parameter '%s' must be between -1.0 and 1.0", name));
return false;
}