0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-26 20:33:53 +01:00

all the functions

This commit is contained in:
2026-01-20 21:43:16 +01:00
parent 53c9169330
commit 48bad4ea9e
5 changed files with 32 additions and 27 deletions

View File

@@ -92,8 +92,8 @@ local function get_data()
local oda = _RDS_ODAs[_RDS_ODA_pointer]
if oda ~= false and type(oda.handler) == "function" then
local generated, b, c, d = oda.handler()
if generated then
local ok, generated, b, c, d = pcall(oda.handler())
if ok and generated then
_RDS_ODA_pointer = (_RDS_ODA_pointer % #_RDS_ODAs) + 1
b = b | oda.group << 12
b = b | (oda.group_version and 1 or 0) << 11