0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-27 04:43:52 +01:00

fix copying

This commit is contained in:
2025-03-16 19:45:47 +01:00
parent ce2f21f879
commit 5ee7d62d90

View File

@@ -199,10 +199,10 @@ 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) {
// Copy DPS1
memcpy(&(enc->state[enc->program].dps1_text[enc->state->dynamic_ps_position]), enc->data[enc->program].ps, PS_LENGTH);
switch (enc->data[enc->program].dps1_mode)
{
case 0:
memcpy(enc->state[enc->program].dps1_text[enc->state->dynamic_ps_position], enc->data[enc->program].ps, PS_LENGTH);
enc->state[enc->program].dynamic_ps_position += PS_LENGTH;
break;
case 1: