Skip to content

Commit b1dfb78

Browse files
committed
fixed TSS ME 11 check in ModeSDecoder
was checking the wrong bit
1 parent 7789d70 commit b1dfb78

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/opensky/libadsb/ModeSDecoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public ModeSReply decode(ModeSReply modes) throws BadFormatException, Unspecifie
145145
if (ftc == 29) {
146146
int subtype = (es1090.getMessage()[0]>>>1) & 0x3;
147147
// DO-260B 2.2.3.2.7.1: ignore for ADS-B v0 transponders if ME bit 11 != 0
148-
boolean hasMe11Bit = (es1090.getMessage()[1]&0x40) != 0;
148+
boolean hasMe11Bit = (es1090.getMessage()[1]&0x20) != 0;
149149

150150
if (subtype == 1 && (dd.adsbVersion > 0 || !hasMe11Bit)) {
151151
return new TargetStateAndStatusMsg(es1090);

0 commit comments

Comments
 (0)