mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-02-27 12:53:53 +01:00
adjust scroll
This commit is contained in:
@@ -237,7 +237,7 @@ static void get_rds_ps_group(RDSEncoder* enc, uint16_t *blocks) {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if(enc->data[enc->program].dps1_len > PS_LENGTH) {
|
if(enc->data[enc->program].dps1_len > PS_LENGTH) {
|
||||||
uint8_t scroll_threshold = (enc->data[enc->program].dps_speed == 0) ? 4 : 2;
|
uint8_t scroll_threshold = (enc->data[enc->program].dps_speed == 0) ? 2 : 1;
|
||||||
|
|
||||||
if(enc->state[enc->program].dynamic_ps_scroll_counter >= scroll_threshold) {
|
if(enc->state[enc->program].dynamic_ps_scroll_counter >= scroll_threshold) {
|
||||||
if(enc->state[enc->program].dynamic_ps_position >= enc->data[enc->program].dps1_len) {
|
if(enc->state[enc->program].dynamic_ps_position >= enc->data[enc->program].dps1_len) {
|
||||||
|
|||||||
Reference in New Issue
Block a user