This commit is contained in:
2025-12-22 22:05:36 +01:00
parent 742a8b7a03
commit ad790b2852
+4 -1
View File
@@ -696,7 +696,10 @@ void set_rds_defaults(RDSEncoder* enc, uint8_t program) {
void init_rds_encoder(RDSEncoder* enc) {
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);
}