0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-27 04:43:52 +01:00
This commit is contained in:
2025-12-22 22:05:36 +01:00
parent 742a8b7a03
commit ad790b2852

View File

@@ -696,7 +696,10 @@ void set_rds_defaults(RDSEncoder* enc, uint8_t program) {
void init_rds_encoder(RDSEncoder* enc) { void init_rds_encoder(RDSEncoder* enc) {
for(int i = 0; i < PROGRAMS; i++) set_rds_defaults(enc, i); for(int i = 0; i < PROGRAMS; i++) set_rds_defaults(enc, i);
if (encoder_loadFromFile(enc) == 1) lua_on_init(); if (encoder_loadFromFile(enc)) {
printf("Encoder file will be reinitialized.");
lua_on_init();
}
encoder_saveToFile(enc); encoder_saveToFile(enc);
} }