0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-26 20:33:53 +01:00

wrong bitwise

This commit is contained in:
2025-12-28 16:12:35 +01:00
parent 46b44ee555
commit eba832f739

View File

@@ -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