From d00ab0028d3155fc0515575ba08c9e5e37a2b9aa Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sat, 15 Mar 2025 09:28:12 +0100 Subject: [PATCH] fix the error --- src/ascii_cmd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/ascii_cmd.c b/src/ascii_cmd.c index b126874..42ed73b 100644 --- a/src/ascii_cmd.c +++ b/src/ascii_cmd.c @@ -366,16 +366,13 @@ void process_ascii_cmd(RDSModulator* enc, unsigned char *str) { unsigned char *cmd, *arg; uint16_t cmd_len = _strnlen((const char*)str, CTL_BUFFER_SIZE); uint8_t to_save = 0, cmd_reached = 0; - unsigned char *original_str = str; // Store the original string pointer if (str[0] == '*') { to_save = 1; - str++; // Skip the asterisk for command processing + str++; } - // Special case for save commands without '=' (like *ALL) if (to_save && !strchr((const char*)str, '=')) { - // Save without further processing char option[32] = {0}; snprintf(option, sizeof(option), "%s", (const char*)str); saveToFile(enc->enc, option);