command parsing is moving to lua

This commit is contained in:
2025-12-22 14:51:57 +01:00
parent 2f1f127c74
commit f2dcf8563c
3 changed files with 23 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
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