Skip to content

Commit

Permalink
Populate verbatim message for mode a/c.
Browse files Browse the repository at this point in the history
  • Loading branch information
mutability committed Mar 20, 2016
1 parent 7a58e3c commit 0dc8336
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mode_ac.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ void decodeModeAMessage(struct modesMessage *mm, int ModeA)
// so use 32 to indicate Mode A/C

mm->msgbits = 16; // Fudge up a Mode S style data stream
mm->msg[0] = (ModeA >> 8);
mm->msg[1] = (ModeA);
mm->msg[0] = mm->verbatim[0] = (ModeA >> 8);
mm->msg[1] = mm->verbatim[1] = (ModeA);

// Fudge an address based on Mode A (remove the Ident bit)
mm->addr = (ModeA & 0x0000FF7F) | MODES_NON_ICAO_ADDRESS;
Expand Down

0 comments on commit 0dc8336

Please sign in to comment.