From c9bea6a21c5f1521349e20fa716c3e73cd623ce6 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Thu, 2 May 2019 17:54:48 +0800 Subject: [PATCH] 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. --- comm_b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comm_b.c b/comm_b.c index 8311c64..41e195d 100644 --- a/comm_b.c +++ b/comm_b.c @@ -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) {