mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-02-26 20:33:53 +01:00
huh
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user