mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-02-27 12:53:53 +01:00
that was wrong...
This commit is contained in:
@@ -203,7 +203,7 @@ static void get_rds_ps_group(RDSEncoder* enc, uint16_t *blocks) {
|
||||
if(enc->data[enc->program].dps1_enabled &&
|
||||
enc->state[enc->program].ps_csegment == 0 && enc->state[enc->program].dynamic_ps_state != 1) {
|
||||
// Copy DPS1
|
||||
memcpy(enc->state[enc->program].ps_text, &(enc->state[enc->program].dps1_text[enc->state->dynamic_ps_position]), PS_LENGTH);
|
||||
memcpy(enc->state[enc->program].ps_text, &(enc->state[enc->program].dps1_text[enc->state[enc->program]->dynamic_ps_position]), PS_LENGTH);
|
||||
switch (enc->data[enc->program].dps1_mode)
|
||||
{
|
||||
case 0:
|
||||
@@ -610,7 +610,7 @@ void set_rds_dps1(RDSEncoder* enc, char *dps1) {
|
||||
uint8_t len = 0;
|
||||
|
||||
memset(enc->data[enc->program].dps1, ' ', RT_LENGTH);
|
||||
while (*dps1 != 0 && len < RT_LENGTH) enc->data[enc->program].rt1[len++] = *dps1++;
|
||||
while (*dps1 != 0 && len < RT_LENGTH) enc->data[enc->program].dps1[len++] = *dps1++;
|
||||
enc->data[enc->program].dps1_len = len;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user