mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-07-31 09:19:15 +02:00
fix save feature
This commit is contained in:
+2
-2
@@ -461,12 +461,12 @@ void process_ascii_cmd(RDSModulator* enc, unsigned char *str) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (to_save) {
|
if (to_save) {
|
||||||
if (strncmp((const char*)&str[1], "ALL", 3) == 0) {
|
if (strncmp((const char*)&str, "ALL", 3) == 0) {
|
||||||
saveToFile(enc->enc, "ALL");
|
saveToFile(enc->enc, "ALL");
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
char option[32] = {0};
|
char option[32] = {0};
|
||||||
strncpy(option, (const char*)&str[1], sizeof(option) - 1);
|
strncpy(option, (const char*)&str, sizeof(option) - 1);
|
||||||
saveToFile(enc->enc, option);
|
saveToFile(enc->enc, option);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user