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

rft tests

This commit is contained in:
2025-12-28 12:03:53 +01:00
parent ec4d9a8440
commit 7d98606917
6 changed files with 70 additions and 8 deletions

View File

@@ -76,7 +76,9 @@ function get_rds_rtplus_tags(ertp)
return string.byte(get_userdata_offset(ertp and 267 or 260, 6), 1, 6)
end
local _old_on_state_rtp = on_state
function on_state()
if get_rds_rtp_meta(false) then init_rtp() end
if get_rds_rtp_meta(true) then init_ertp() end
if type(_old_on_state_rtp) == "function" then _old_on_state_rtp() end
end