Skip to content

Commit

Permalink
Fixed Data Link Capability Change Indication in BDS1,0
Browse files Browse the repository at this point in the history
It was decoding the wrong bit.

Fixes #24
  • Loading branch information
fixje committed Dec 4, 2024
1 parent f88f2d8 commit d9fe1a0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/

/**
* Decoder for Datalink Capability Report (BDS 1,0)
* Decoder for Datalink Capability Report (BDS 1,0) based on DO-181F Table B- B-3-16a
*/
@SuppressWarnings("unused")
public class DataLinkCapabilityReport extends BDSRegister implements Serializable {
Expand Down Expand Up @@ -445,7 +445,7 @@ static short extractActiveTransponderSideIndicator(byte[] message) {
}

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

// Override
Expand Down

0 comments on commit d9fe1a0

Please sign in to comment.