add save option

This commit is contained in:
2025-03-14 22:35:23 +01:00
parent 45b01d6c19
commit 99ea4e242b
4 changed files with 25 additions and 13 deletions
+5 -1
View File
@@ -366,7 +366,11 @@ void process_ascii_cmd(RDSModulator* enc, unsigned char *str) {
unsigned char *cmd, *arg;
uint16_t cmd_len = _strnlen((const char*)str, CTL_BUFFER_SIZE);
// Process commands with = delimiter at position 2 (format: X=y...)
if (str[0] == '*') {
saveToFile(enc->enc);
return;
}
if (cmd_len > 1 && str[1] == '=') {
cmd = str;
cmd[1] = 0;