From b3f275b05740d4e767da964567426a10bea48540 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibaut=20VAR=C3=88NE?= Date: Wed, 4 Sep 2024 20:35:30 +0200 Subject: [PATCH] acars: report post sync signal level This measures signal level averaged mostly over the PRESYNC key, which should typically be the "loudest" part. --- acars.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acars.c b/acars.c index 14d35a9..8d7aa6d 100644 --- a/acars.c +++ b/acars.c @@ -344,6 +344,7 @@ void decodeAcars(channel_t *ch) } gettimeofday(&(ch->blk->tv), NULL); ch->Acarsstate = TXT; + ch->blk->lvl = 10 * log10(ch->MskLvl); ch->blk->chn = ch->chn; ch->blk->txtlen = 0; ch->blk->err = 0; @@ -387,7 +388,6 @@ void decodeAcars(channel_t *ch) vprerr("#%d didn't get DEL: %x\n", ch->chn+1, r); // ignored putmsg_lbl: - ch->blk->lvl = 10 * log10(ch->MskLvl); vprerr("put message #%d\n", ch->chn + 1);