mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-07-29 16:29:17 +02:00
attempt to fix looping
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@ void set_rds_rt(RDSEncoder* enc, const char *rt, uint8_t program) {
|
||||
enc->state[program].rt_update = 1;
|
||||
|
||||
memset(enc->data[program].rt, ' ', RT_LENGTH);
|
||||
while (*rt != 0 && len < RT_LENGTH) enc->data[program].rt[len++] = *rt++;
|
||||
while (*rt != '\r' && *rt != 0 && len < RT_LENGTH) enc->data[program].rt[len++] = *rt++;
|
||||
|
||||
while (len > 0 && enc->data[program].rt[len - 1] == ' ') len--;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user