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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user