diff --git a/scripts/0-rds2_oda.lua b/scripts/0-rds2_oda.lua index abe08bc..0b23b5a 100644 --- a/scripts/0-rds2_oda.lua +++ b/scripts/0-rds2_oda.lua @@ -77,7 +77,7 @@ function rds2_group(stream) local generated, a, b, c, d = oda.handler(stream) local channel_bitshift = 8 local fid = (a & 0xC000) >> 14 - local fn_msb = (a >> 15) & 1 + local fn_msb = (a >> 13) & 1 if fid == 0 and fn_msb == 0 then return true, 0, b, c, d elseif fid == 0 and fn_msb == 1 then channel = channel & 0xF --FID = 1 means a normal ODA group