Populate verbatim message for mode a/c.

This commit is contained in:
Oliver Jowett 2016-03-20 19:48:59 +00:00
parent 7a58e3cdc5
commit 0dc8336c14

View file

@ -80,8 +80,8 @@ void decodeModeAMessage(struct modesMessage *mm, int ModeA)
// so use 32 to indicate Mode A/C // so use 32 to indicate Mode A/C
mm->msgbits = 16; // Fudge up a Mode S style data stream mm->msgbits = 16; // Fudge up a Mode S style data stream
mm->msg[0] = (ModeA >> 8); mm->msg[0] = mm->verbatim[0] = (ModeA >> 8);
mm->msg[1] = (ModeA); mm->msg[1] = mm->verbatim[1] = (ModeA);
// Fudge an address based on Mode A (remove the Ident bit) // Fudge an address based on Mode A (remove the Ident bit)
mm->addr = (ModeA & 0x0000FF7F) | MODES_NON_ICAO_ADDRESS; mm->addr = (ModeA & 0x0000FF7F) | MODES_NON_ICAO_ADDRESS;