From e7b5c659005d215e8178b8798b33b0c3d11327dc Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Thu, 23 Jan 2020 14:36:00 +0100 Subject: [PATCH] clean up debug print --- tplink/deviceplugintplink.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/tplink/deviceplugintplink.cpp b/tplink/deviceplugintplink.cpp index 2a3e52cf..f44f85e4 100644 --- a/tplink/deviceplugintplink.cpp +++ b/tplink/deviceplugintplink.cpp @@ -343,7 +343,6 @@ void DevicePluginTPLink::connectToDevice(Device *device, const QHostAddress &add // This has quite a bit of jitter... Let's smoothen it while within +/- 0.1W to produce less events in the system double oldValue = device->stateValue(kasaPlugCurrentPowerStateTypeId).toDouble(); double newValue = emeterMap.value("get_realtime").toMap().value("power_mw").toDouble() / 1000; - qCDebug(dcTplink()) << "old:" << oldValue << "new" << newValue << "diff" << qAbs(oldValue - newValue); if (qAbs(oldValue - newValue) > 0.1) { device->setStateValue(kasaPlugCurrentPowerStateTypeId, newValue); }