SeRoSystems / lib1090

Java decoding library for Mode S, ADS-B, TIS-B and ADS-R
GNU General Public License v3.0
16 stars 2 forks source link

Typo in src/main/java/de/serosystems/lib1090/msgs/bds/DataLinkCapabilityReport.java #24

Open lvalkenbergECTRL opened 2 months ago

lvalkenbergECTRL commented 2 months ago

Hello, for BDS 1,0 the following function (line 447):

static boolean extractChangeFlag(byte[] message) {
    return ((message[5] >>> 5) & 0x01) == 1;
}

decode the same bit as this one (line 431):

static boolean extractPhaseOverlayExtendedSquitterCapability(byte[] message) {
    return ((message[5] >>> 5) & 0x01) == 1;
}

I'm wondering if there is a typo in extractChangeFlag() ?