Merge pull request #289 from DO1OLI/master

Show FCS receive debug only when debug is active
This commit is contained in:
Jonathan Naylor 2022-11-16 19:22:30 +00:00 committed by GitHub
commit ec16283b5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

1
.gitignore vendored
View file

@ -18,3 +18,4 @@ YSFGateway/YSFGateway
YSFParrot/YSFParrot
YSFReflector/YSFReflector
GitVersion.h
.vscode

3
DGIdGateway/.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,3 @@
{
"makefile.extensionOutputFolder": "./.vscode"
}

View file

@ -191,7 +191,8 @@ void CFCSNetwork::clock(unsigned int ms)
if (length <= 0)
return;
CUtils::dump(1U, "FCS Network Data Received", buffer, length);
if (m_debug)
CUtils::dump(1U, "FCS Network Data Received", buffer, length);
if (m_state == DS_NOTLINKED)
return;