Skip to content

Commit

Permalink
Merge pull request cyoung#61 from TomBric/master
Browse files Browse the repository at this point in the history
Added Mode-S Identity Reply decoding
  • Loading branch information
b3nn0 committed Jul 3, 2020
2 parents 6b53506 + 2273c18 commit 57bb836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/traffic.go
Expand Up @@ -1273,7 +1273,7 @@ func esListen() {
ti.OnGround = bool(*newTi.OnGround)
}

if (newTi.Tail != nil) && ((newTi.DF == 17) || (newTi.DF == 18)) { // DF=17 or DF=18, Type Code 1-4
if (newTi.Tail != nil) && ((newTi.DF == 17) || (newTi.DF == 18) || (newTi.DF == 21)) { // DF=17 or DF=18, Type Code 1-4 , DF=21 Identity Reply
ti.Tail = *newTi.Tail
ti.Tail = strings.Trim(ti.Tail, " ") // remove extraneous spaces
}
Expand Down

0 comments on commit 57bb836

Please sign in to comment.