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

try to fix dps

This commit is contained in:
2025-03-17 02:20:28 +01:00
parent a6b309aa6f
commit 0878fb6b42
3 changed files with 5 additions and 4 deletions

3
.gitignore vendored
View File

@@ -53,4 +53,5 @@ dkms.conf
build/ build/
*.pyc *.pyc
__pycache__/ __pycache__/
.vscode/

View File

@@ -1,5 +1,5 @@
{ {
"port": 13452, "port": 13452,
"time": 1742119572632, "time": 1742173957327,
"version": "0.0.3" "version": "0.0.3"
} }

View File

@@ -186,7 +186,7 @@ static void get_rds_ps_group(RDSEncoder* enc, uint16_t *blocks) {
enc->state[enc->program].tps_update = 0; enc->state[enc->program].tps_update = 0;
} }
if(enc->data[enc->program].dps1_enabled && if(enc->data[enc->program].dps1_enabled &&
enc->state[enc->program].ps_csegment == 0) { enc->state[enc->program].ps_csegment == 0 && enc->state[enc->program].dynamic_ps_state != 0) {
// Copy Static PS // Copy Static PS
memcpy(enc->state[enc->program].ps_text, enc->data[enc->program].ps, PS_LENGTH); memcpy(enc->state[enc->program].ps_text, enc->data[enc->program].ps, PS_LENGTH);
@@ -196,7 +196,7 @@ static void get_rds_ps_group(RDSEncoder* enc, uint16_t *blocks) {
} }
} }
if(enc->data[enc->program].dps1_enabled && if(enc->data[enc->program].dps1_enabled &&
enc->state[enc->program].ps_csegment == 0) { enc->state[enc->program].ps_csegment == 0 && enc->state[enc->program].dynamic_ps_state != 1) {
// Copy DPS1 // Copy DPS1
memcpy(&(enc->state[enc->program].dps1_text[enc->state->dynamic_ps_position]), enc->data[enc->program].ps, PS_LENGTH); 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) switch (enc->data[enc->program].dps1_mode)