0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-26 20:33:53 +01:00

disable rt1 if its empty

This commit is contained in:
2025-03-13 21:48:09 +01:00
parent 8f1437925f
commit 2669b3d5b5

View File

@@ -474,6 +474,14 @@ void set_rds_rt1(unsigned char *rt1) {
uint8_t i = 0, len = 0;
rds_state.rt_update = 1;
if(rt1[0] == '\0') {
rds_state.rt1_enabled = 0;
return;
} else {
rds_state.rt1_enabled = 1;
}
memset(rds_data.rt1, ' ', RT_LENGTH);
while (*rt1 != 0 && len < RT_LENGTH)
rds_data.rt1[len++] = *rt1++;