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:
@@ -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
5
scripts/1-state.lua
Normal 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
|
||||||
Reference in New Issue
Block a user