From f2b3c7b2d7f85c07ae177b916a896693d11db3ba Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 28 Jul 2019 20:23:13 +0200 Subject: [PATCH] onlyh show missed bus if logging is enabled --- src/ems.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ems.cpp b/src/ems.cpp index e6b58833c..b33c6c597 100644 --- a/src/ems.cpp +++ b/src/ems.cpp @@ -742,7 +742,9 @@ void ems_parseTelegram(uint8_t * telegram, uint8_t length) { * buffer isn't valid anymore, so we must not answer at all... */ if (EMS_Sys_Status.emsRxStatus != EMS_RX_STATUS_IDLE) { - myDebug_P(PSTR("** [DEBUG MODE] We missed the bus - Rx non-idle!")); //TODO tidy up error logging + if (EMS_Sys_Status.emsLogging > EMS_SYS_LOGGING_NONE) { + myDebug_P(PSTR("** [DEBUG MODE] We missed the bus - Rx non-idle!")); //TODO tidy up error logging + } return; }