mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-02-27 04:43:52 +01:00
remove lpson
This commit is contained in:
@@ -100,7 +100,6 @@ static void handle_rtp(unsigned char *arg) {
|
||||
|
||||
static void handle_lps(unsigned char *arg) {
|
||||
arg[LPS_LENGTH] = 0;
|
||||
set_rds_lpson(1);
|
||||
set_rds_lps(arg);
|
||||
}
|
||||
|
||||
@@ -216,11 +215,6 @@ static void handle_tps_off(unsigned char *arg) {
|
||||
set_rds_tpson(0);
|
||||
}
|
||||
|
||||
static void handle_lps_off(unsigned char *arg) {
|
||||
(void)arg;
|
||||
set_rds_lpson(0);
|
||||
}
|
||||
|
||||
// Command tables organized by delimiter position and command length
|
||||
static const command_handler_t commands_eq3[] = {
|
||||
{"PS", handle_ps, 2},
|
||||
@@ -268,7 +262,6 @@ static const command_handler_t commands_eq7[] = {
|
||||
static const command_handler_t commands_exact[] = {
|
||||
{"AF=", handle_clear_af, 3},
|
||||
{"TPS=", handle_tps_off, 4},
|
||||
{"LPS=", handle_lps_off, 4},
|
||||
{"AFCH=", handle_clear_af, 5}
|
||||
};
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@ static struct {
|
||||
uint8_t ptyn_update;
|
||||
uint8_t ptyn_ab;
|
||||
|
||||
uint8_t lps_on;
|
||||
uint8_t lps_update;
|
||||
uint8_t lps_segments;
|
||||
|
||||
@@ -333,7 +332,7 @@ static uint8_t get_rds_other_groups(uint16_t *blocks) {
|
||||
static uint8_t get_rds_long_text_groups(uint16_t *blocks) {
|
||||
static uint8_t group_selector = 0;
|
||||
|
||||
if (group_selector == 4 && rds_data.lps[0] && rds_state.lps_on) {
|
||||
if (group_selector == 4 && rds_data.lps[0]) {
|
||||
get_rds_lps_group(blocks);
|
||||
goto group_coded;
|
||||
}
|
||||
@@ -428,7 +427,6 @@ void init_rds_encoder(struct rds_params_t rds_params) {
|
||||
rds_state.ptyn_ab = 1;
|
||||
set_rds_ptyn(rds_params.ptyn);
|
||||
set_rds_lps(rds_params.lps);
|
||||
set_rds_lpson(1);
|
||||
set_rds_tp(rds_params.tp);
|
||||
set_rds_ecc(rds_params.ecc);
|
||||
set_rds_lic(rds_params.lic);
|
||||
@@ -514,10 +512,6 @@ void set_rds_tps(unsigned char *tps) {
|
||||
rds_data.tps[len++] = *tps++;
|
||||
}
|
||||
|
||||
void set_rds_lpson(uint8_t lpson) {
|
||||
rds_state.lps_on = lpson & INT8_0;
|
||||
}
|
||||
|
||||
void set_rds_lps(unsigned char *lps) {
|
||||
uint8_t i = 0, len = 0;
|
||||
|
||||
|
||||
@@ -273,7 +273,6 @@ extern void set_rds_rt1(unsigned char *rt1);
|
||||
extern void set_rds_ps(unsigned char *ps);
|
||||
extern void set_rds_tpson(uint8_t tpson);
|
||||
extern void set_rds_tps(unsigned char *ps);
|
||||
extern void set_rds_lpson(uint8_t lpson);
|
||||
extern void set_rds_lps(unsigned char *lps);
|
||||
extern void set_rds_rtplus_flags(uint8_t flags);
|
||||
extern void set_rds_rtplus_tags(uint8_t *tags);
|
||||
|
||||
Reference in New Issue
Block a user