diff --git a/scripts/0-rds2_oda.lua b/scripts/0-rds2_oda.lua index 11c0325..5a31835 100644 --- a/scripts/0-rds2_oda.lua +++ b/scripts/0-rds2_oda.lua @@ -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 diff --git a/scripts/3-rds2_oda_test.lua b/scripts/3-rds2_oda_test.lua index b2563cf..972d1e3 100644 --- a/scripts/3-rds2_oda_test.lua +++ b/scripts/3-rds2_oda_test.lua @@ -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 \ No newline at end of file