mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-02-27 12:53:53 +01:00
on god, i can send 48 bits?
This commit is contained in:
10
scripts/3-rds2_oda_test.lua
Normal file
10
scripts/3-rds2_oda_test.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
local _rds2_test_counter = 0
|
||||
|
||||
local function rds2_oda_test()
|
||||
local id = register_oda_rds2(0xfffe, 0xfffff, false)
|
||||
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
|
||||
end)
|
||||
end
|
||||
Reference in New Issue
Block a user