add some ascii cmd rules

This commit is contained in:
2025-03-16 14:14:29 +01:00
parent c839571d3a
commit 17c5c9023c
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -383,6 +383,10 @@ void process_ascii_cmd(RDSModulator* mod, unsigned char *str) {
unsigned char *cmd, *arg;
uint16_t cmd_len = _strnlen((const char*)str, CTL_BUFFER_SIZE);
for(uint16_t i = 0; i < cmd_len; i++) {
if(str[i] == '\t') str[i] = ' ';
}
for (size_t i = 0; i < sizeof(commands_exact) / sizeof(command_handler_t); i++) {
const command_handler_t *handler = &commands_exact[i];
if (cmd_len == handler->cmd_length &&