0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-26 20:33:53 +01:00
This commit is contained in:
2025-12-27 15:42:11 +01:00
parent fa30b4a50f
commit 18a8523e24
2 changed files with 2 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ function rds2_group(stream)
if _RDS2_ODA_aid > 2 then _RDS2_ODA_aid = 0 end
if oda.handler then
local generated, a, b, c, d = oda.handler(stream)
return generated, (1 << 14) | (channel << 8) | a, b, c, d
return generated, (1 << 13) | (channel << 8) | a, b, c, d
end
return true, (1 << 15) | channel, oda.aid, (oda.data >> 16) & 0xffff, oda.data & 0xffff
end

View File

@@ -5,6 +5,6 @@ local function rds2_oda_test()
set_oda_handler_rds2(id, function ()
_rds2_test_counter = _rds2_test_counter + 1
if _rds2_test_counter > 0xffffffffffff then _rds2_test_counter = 0 end
return true, 0, (_rds2_test_counter & 0xffff00000000) >> 32, (_rds2_test_counter & 0xffff0000) >> 16, _rds2_test_counter & 0xffff
return true, 16, (_rds2_test_counter & 0xffff00000000) >> 32, (_rds2_test_counter & 0xffff0000) >> 16, _rds2_test_counter & 0xffff
end)
end