From ff19408e2d9144149500f322ee73179a62d4e0c8 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Tue, 13 Oct 2020 10:11:13 +0100 Subject: [PATCH] Fix bug added in FICH regeneration. --- YSFControl.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/YSFControl.cpp b/YSFControl.cpp index 3830ff5..63d23ca 100644 --- a/YSFControl.cpp +++ b/YSFControl.cpp @@ -171,15 +171,13 @@ bool CYSFControl::writeModem(unsigned char *data, unsigned int len) } } - fich.setFI(YSF_FI_COMMUNICATIONS); - fich.setFN(fn); - fich.setFT(ft); - fich.setBN(bn); - fich.setBT(bt); + m_lastFICH.setFI(YSF_FI_COMMUNICATIONS); + m_lastFICH.setFN(fn); + m_lastFICH.setBN(bn); + } else { + m_lastFICH = fich; } - m_lastFICH = fich; - #ifdef notdef // Stop repeater packets coming through, unless we're acting as a remote gateway if (m_remoteGateway) {