Update mode_s.c

This commit is contained in:
henry1952 2019-04-11 19:01:07 +02:00 committed by GitHub
parent c05aea65a4
commit 37e49906d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -568,9 +568,9 @@ int decodeModesMessage(struct modesMessage *mm, unsigned char *msg)
mm->CC = getbit(msg, 7); mm->CC = getbit(msg, 7);
} }
// CF (Control field) // CF (Control field, see Figure 2-2 ADS-B Message BaselineFormat Structure)
if (mm->msgtype == 18) { if (mm->msgtype == 18) {
mm->CF = getbits(msg, 5, 8); mm->CF = getbits(msg, 6, 8);
} }
// DR (Downlink Request) // DR (Downlink Request)