0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-27 12:53:53 +01:00
This commit is contained in:
2025-12-22 19:14:50 +01:00
parent ff9f3d1bb8
commit 40a184301b

View File

@@ -238,7 +238,7 @@ void init_lua(RDSModulator* rds_mod) {
lua_pushstring(L, VERSION);
lua_setglobal(L, "core_version");
lua_pushinteger(L, PROGRAMS)
lua_pushinteger(L, PROGRAMS);
lua_setglobal(L, "max_programs");
lua_register(L, "set_rds_program_defaults", lua_set_rds_program_defaults);
@@ -359,8 +359,8 @@ void lua_on_init() {
return;
}
lua_pushnil();
lua_setglobal(L, "data")
lua_pushnil(L);
lua_setglobal(L, "data");
if (lua_pcall(L, 0, 0, 0) != LUA_OK) {
const char *err = lua_tostring(L, -1);