fix for set_custom_var

This commit is contained in:
Florent de Lamotte 2025-05-05 16:35:32 +02:00
parent fb5fcae614
commit a39c000f5d
3 changed files with 5 additions and 4 deletions

View file

@ -1499,6 +1499,7 @@ public:
}
_serial->writeFrame(out_frame, dp - (char *)out_frame);
} else if (cmd_frame[0] == CMD_SET_CUSTOM_VAR && len >= 4) {
cmd_frame[len] = 0;
char* sp = (char *) &cmd_frame[1];
char* np = strchr(sp, ':'); // look for separator char
if (np) {