From e3a1a242d251c4466b8e127e3b44ee15a1e7a5af Mon Sep 17 00:00:00 2001 From: Gunnar Skjold Date: Fri, 29 Jul 2022 22:24:06 +0200 Subject: [PATCH] Fixed debugging --- src/AmsToMqttBridge.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AmsToMqttBridge.ino b/src/AmsToMqttBridge.ino index a408506a..fe238749 100644 --- a/src/AmsToMqttBridge.ino +++ b/src/AmsToMqttBridge.ino @@ -845,7 +845,7 @@ bool readHanPort() { } debugV("Using application data:"); - debugPrint(hanBuffer+pos, 0, ctx.length); + if(Debug.isActive(RemoteDebug::VERBOSE)) debugPrint(hanBuffer+pos, 0, ctx.length); // TODO: Split IEC6205675 into DataParserKaifa and DataParserObis. This way we can add other means of parsing, for those other proprietary formats data = IEC6205675(((char *) (hanBuffer)) + pos, meterState.getMeterType(), &meterConfig, ctx);