0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-26 20:33:53 +01:00
This commit is contained in:
2025-12-22 19:13:17 +01:00
parent 630fc747d6
commit ff9f3d1bb8
7 changed files with 265 additions and 22 deletions

View File

@@ -7,6 +7,9 @@ if type(data) == "string" then
elseif data == "init" then
set_rds_program_defaults()
return "+"
elseif data == "reset" then
reset_rds()
return "+"
end
end
cmd = cmd:lower()
@@ -115,7 +118,7 @@ if type(data) == "string" then
elseif cmd == "program" then
local program = tonumber(value)
if not program then return "-" end
if program < 1 then return "-" end
if program < 1 or program > max_programs then return "-" end
set_rds_program(program-1)
return "+"
elseif cmd == "level" then