mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-02-27 04:43:52 +01:00
15 lines
323 B
Lua
15 lines
323 B
Lua
cmd_output = ""
|
|
|
|
if type(cmd) == "string" then
|
|
if cmd:sub(1, 3) == "PI=" then
|
|
local hex = cmd:sub(7)
|
|
local pi = tonumber(hex, 16)
|
|
|
|
if pi then
|
|
set_rds_pi(pi)
|
|
cmd_output = string.format("+", pi)
|
|
else
|
|
cmd_output = "Invalid hex PI"
|
|
end
|
|
end
|
|
end |