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

add default rt setter + rt timeout and switching period now can be in seconds

This commit is contained in:
2025-12-26 09:18:51 +01:00
parent 4310a847d9
commit 9c4321d9e4
6 changed files with 62 additions and 35 deletions

View File

@@ -265,7 +265,7 @@ function data_handle(data)
elseif cmd == "rtper" then
local period = tonumber(value)
if not period then return "-" end
set_rds_rt_switching_period(period)
set_rds_rt_switching_period(period*60)
return "+"
elseif cmd == "program" then
local program = tonumber(value)
@@ -281,7 +281,7 @@ function data_handle(data)
elseif cmd == "dttmout" then
local timeout = tonumber(value)
if not timeout then return "-" end
set_rds_rt_text_timeout(timeout)
set_rds_rt_text_timeout(timeout*60)
return "+"
elseif cmd == "grpseq" then
set_rds_grpseq(value)