From adceddcb40a7aca976b86f5992be6cbb57b0950d Mon Sep 17 00:00:00 2001 From: Andy CA6JAU Date: Sun, 13 May 2018 01:34:40 -0400 Subject: [PATCH] Prevent false poll lost --- YSFGateway/YSFGateway.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/YSFGateway/YSFGateway.cpp b/YSFGateway/YSFGateway.cpp index 3727b05..79005ea 100644 --- a/YSFGateway/YSFGateway.cpp +++ b/YSFGateway/YSFGateway.cpp @@ -246,10 +246,12 @@ int CYSFGateway::run() for (;;) { unsigned char buffer[200U]; + memset(buffer, 0U, 200U); while (rptNetwork.read(buffer) > 0U) { CYSFFICH fich; bool valid = fich.decode(buffer + 35U); + m_exclude = false; if (valid) { unsigned char fi = fich.getFI(); unsigned char dt = fich.getDT();