mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-02-26 20:33:53 +01:00
really?
This commit is contained in:
@@ -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];
|
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++;
|
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) {
|
static void get_rds_rt_group(RDSEncoder* enc, uint16_t *blocks) {
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ typedef struct {
|
|||||||
uint8_t tps_update : 1;
|
uint8_t tps_update : 1;
|
||||||
char ps_text[PS_LENGTH];
|
char ps_text[PS_LENGTH];
|
||||||
char tps_text[PS_LENGTH];
|
char tps_text[PS_LENGTH];
|
||||||
uint8_t ps_csegment : 2;
|
uint8_t ps_csegment : 3;
|
||||||
|
|
||||||
char rt_text[RT_LENGTH];
|
char rt_text[RT_LENGTH];
|
||||||
uint8_t rt_state : 4;
|
uint8_t rt_state : 4;
|
||||||
|
|||||||
Reference in New Issue
Block a user