Store comm-b gs in gs.selected to help the decoder tests out.

Usually this is set in track.c, but the tests don't use that code path.

This somewhat increases the number of "suspicious" messages found.
This commit is contained in:
Oliver Jowett 2019-05-02 17:54:48 +08:00
parent 27f41c178f
commit c9bea6a21c

View file

@ -581,7 +581,7 @@ static int decodeBDS50(struct modesMessage *mm, bool store)
if (gs_valid) {
mm->gs_valid = 1;
mm->gs.v0 = mm->gs.v2 = gs;
mm->gs.v0 = mm->gs.v2 = mm->gs.selected = gs;
}
if (track_rate_valid) {