set the dps1 update flag

This commit is contained in:
2025-03-17 02:49:40 +01:00
parent 4e52143770
commit 95e5b529d2
+1
View File
@@ -609,6 +609,7 @@ void set_rds_ps(RDSEncoder* enc, char *ps) {
void set_rds_dps1(RDSEncoder* enc, char *dps1) {
uint8_t len = 0;
enc->state[enc->program].dps1_update = 1;
memset(enc->data[enc->program].dps1, ' ', RT_LENGTH);
while (*dps1 != 0 && len < RT_LENGTH) enc->data[enc->program].dps1[len++] = *dps1++;
enc->data[enc->program].dps1_len = len;