From f626490889189c58d56df6811f546677c1d098d8 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Tue, 9 Jun 2020 09:32:14 -0700 Subject: [PATCH] moved header_type inside --- QnetGateway.cpp | 2 +- QnetGateway.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/QnetGateway.cpp b/QnetGateway.cpp index 23bb903..46ebca7 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -692,7 +692,7 @@ void CQnetGateway::ProcessSlowData(unsigned char *data, const unsigned short sid for (int i=0; i<3; i++) { if (band_txt[i].streamID == sid) { if (new_group[i]) { - header_type = c1 & 0xf0; + const unsigned char header_type = c1 & 0xf0; // header squelch if ((header_type == 0x50) || (header_type == 0xc0)) { diff --git a/QnetGateway.h b/QnetGateway.h index 611ac4d..25356d9 100644 --- a/QnetGateway.h +++ b/QnetGateway.h @@ -94,7 +94,6 @@ private: int af_family[2] = { AF_UNSPEC, AF_UNSPEC }; // text stuff bool new_group[3] = { true, true, true }; - unsigned char header_type = 0; short to_print[3] = { 0, 0, 0 }; bool ABC_grp[3] = { false, false, false }; bool C_seen[3] = { false, false, false };