mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-07-29 08:19:17 +02:00
reinvent the group sequence
This commit is contained in:
+1
-1
@@ -119,7 +119,7 @@ local function group_handler(group_type)
|
||||
if group_type == "O" then return get_aid()
|
||||
elseif group_type == "K" then return get_data() end
|
||||
end
|
||||
rds.ext.register_group("OK", group_handler)
|
||||
rds.ext.register_group("\x06\xff", group_handler)
|
||||
|
||||
table.insert(hooks.on_state, function ()
|
||||
_RDS_ODAs = {}
|
||||
|
||||
@@ -79,7 +79,6 @@ function hooks.data_handle(data)
|
||||
elseif data == "lps" then return string.format("LPS=%s\r\n", rds.get_lps())
|
||||
elseif data == "ert" then return string.format("ERT=%s\r\n", rds.ext.get_ert())
|
||||
elseif data == "grpseq" then return string.format("GRPSEQ=%s\r\n", rds.get_grpseq())
|
||||
elseif data == "grpseq2" then return string.format("GRPSEQ2=%s\r\n", rds.get_grpseq2())
|
||||
else
|
||||
local eon_cmd, eon_num = data:match("^eon(%d+)([a-z]+)$")
|
||||
if eon_cmd then
|
||||
@@ -261,9 +260,6 @@ function hooks.data_handle(data)
|
||||
elseif cmd == "grpseq" then
|
||||
rds.set_grpseq(value)
|
||||
return "+\r\n"
|
||||
elseif cmd == "grpseq2" then
|
||||
rds.set_grpseq2(value)
|
||||
return "+\r\n"
|
||||
elseif cmd == "rtp" or cmd == "ertp" then
|
||||
local is_ertp = (cmd == "ertp")
|
||||
local t1, s1, l1, t2, s2, l2 = value:match("(%d+),(%d+),(%d+),(%d+),(%d+),(%d+)")
|
||||
|
||||
Reference in New Issue
Block a user