direwolf icon indicating copy to clipboard operation
direwolf copied to clipboard

Excessive warning about have Inverted cmd.hdr

Open KG6KZZ opened this issue 1 year ago • 0 comments

I was getting too many excessive warning messages indicating that the header is inverted when the radio channel is in idle states with no traffic in the air.

Perhaps, it is due to too much audio gain on idle RF channel. In stead of root causing the problem, I reduce the trigger level of Inverted Header warning only when the received header is exact opposite. This drastically reduced the number of warnings, but still able to inform the user when the actual header is inverted.

Jason Kim. KG6KZZ

========================================================= diff --git a/src/il2p_rec.c b/src/il2p_rec.c index bc39bd1..132a9d0 100644 --- a/src/il2p_rec.c +++ b/src/il2p_rec.c

@@ -127,10 +126,12 @@ void il2p_rec_bit (int chan, int subchan, int slice, int dbit) F->bc = 0; F->hc = 0; }

  •   else if (__builtin_popcount ((~F->acc & 0x00ffffff) ^ IL2P_SYNC_WORD) <= 1) {
    
  •   else if (__builtin_popcount ((~F->acc & 0x00ffffff) ^ IL2P_SYNC_WORD) == 0) {
        text_color_set (DW_COLOR_INFO);
        // FIXME - this pops up occasionally with random noise.  Find better way to convey information.
        // This also happens for each slicer - to noisy.
    
  •     // KG6KZZ display inversion hints only when header matches exact opposite polarity
        dw_printf ("IL2P header has reverse polarity\n");
        F->polarity = 1;
        F->state = IL2P_HEADER;
    

KG6KZZ avatar Jul 10 '22 19:07 KG6KZZ