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

why is ts not running

This commit is contained in:
2025-12-22 19:53:04 +01:00
parent 5165ea73e3
commit 08e1d7a1cf
2 changed files with 4 additions and 4 deletions

View File

@@ -697,13 +697,13 @@ void set_rds_defaults(RDSEncoder* enc, uint8_t program) {
enc->encoder_data.ascii_data.expected_encoder_addr = 255; // Unknown
if(enc->state[0].first_init_done) lua_on_init();
if(enc->state[0].call_lua != 0) lua_on_init();
}
void init_rds_encoder(RDSEncoder* enc) {
enc->state[0].first_init_done = 0;
enc->state[0].call_lua = 0;
for(int i = 0; i < PROGRAMS; i++) set_rds_defaults(enc, i);
enc->state[0].first_init_done = 1;
enc->state[0].call_lua = 1;
if (encoder_saved()) encoder_loadFromFile(enc);
else {

View File

@@ -173,7 +173,7 @@ typedef struct {
uint16_t last_stream0_group[3];
uint8_t last_stream0_group_type_b : 1;
uint8_t first_init_done : 1;
uint8_t call_lua : 1;
} RDSState;
typedef struct {