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

change group

This commit is contained in:
2025-12-26 11:27:56 +01:00
parent 44ddb64eb4
commit ebee983390
2 changed files with 6 additions and 1 deletions

View File

@@ -3,7 +3,7 @@ _Ert_oda_id = nil
local function init_ert() local function init_ert()
if _Ert_oda_id == nil then if _Ert_oda_id == nil then
_Ert_oda_id = register_oda(12, false, 0x6552, 1) _Ert_oda_id = register_oda(13, false, 0x6552, 1)
set_oda_handler(_Ert_oda_id, function () set_oda_handler(_Ert_oda_id, function ()
if string.byte(get_userdata_offset(258, 1)) == 1 then if string.byte(get_userdata_offset(258, 1)) == 1 then
local new_data = get_userdata_offset(0, 128) local new_data = get_userdata_offset(0, 128)

5
scripts/1-state.lua Normal file
View File

@@ -0,0 +1,5 @@
function on_state()
if get_rds_rtp_meta(false) then init_rtp() end
if get_rds_rtp_meta(true) then init_ertp() end
if string.byte(get_userdata_offset(257, 1)) ~= 0 then init_ert() end
end