Show FCS receive debug only when debug is active

This commit is contained in:
Oliver 2022-07-16 11:02:52 +02:00
parent 1015f3d55f
commit cdfc8c9fad
2 changed files with 5 additions and 1 deletions

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;