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

better scheduling of oda

This commit is contained in:
2025-12-29 10:34:28 +01:00
parent 936a9a356c
commit 7727d15ba5
2 changed files with 29 additions and 15 deletions

View File

@@ -93,10 +93,12 @@ local function get_data()
if oda ~= false and type(oda.handler) == "function" then
local generated, b, c, d = oda.handler()
_RDS_ODA_pointer = (_RDS_ODA_pointer % #_RDS_ODAs) + 1
b = b | oda.group << 12
b = b | (oda.group_version and 1 or 0) << 11
return generated, b, c, d
if 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
return generated, b, c, d
end
end
_RDS_ODA_pointer = (_RDS_ODA_pointer % #_RDS_ODAs) + 1