0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-26 20:33:53 +01:00
This commit is contained in:
2025-03-28 20:31:45 +01:00
parent 648eed8caa
commit 8ff6c5d679
2 changed files with 2 additions and 2 deletions

View File

@@ -210,8 +210,8 @@ static void get_rds_ps_group(RDSEncoder* enc, uint16_t *blocks) {
blocks[3] = enc->state[enc->program].ps_text[enc->state[enc->program].ps_csegment * 2] << 8 | enc->state[enc->program].ps_text[enc->state[enc->program].ps_csegment * 2 + 1];
}
if (enc->state[enc->program].ps_csegment == 3) enc->state[enc->program].ps_csegment = 0;
enc->state[enc->program].ps_csegment++;
if (enc->state[enc->program].ps_csegment == 4) enc->state[enc->program].ps_csegment = 0;
}
static void get_rds_rt_group(RDSEncoder* enc, uint16_t *blocks) {

View File

@@ -111,7 +111,7 @@ typedef struct {
uint8_t tps_update : 1;
char ps_text[PS_LENGTH];
char tps_text[PS_LENGTH];
uint8_t ps_csegment : 2;
uint8_t ps_csegment : 3;
char rt_text[RT_LENGTH];
uint8_t rt_state : 4;