From caa86551a02cc90a9424879867f924c796a89241 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Thu, 30 Apr 2020 06:42:18 +0200 Subject: [PATCH] A bit less logging from mqtt.cpp. --- src/mqtt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mqtt.cpp b/src/mqtt.cpp index 97a20fd..36baaaa 100644 --- a/src/mqtt.cpp +++ b/src/mqtt.cpp @@ -31,7 +31,7 @@ void mqtt_callback(char* original_topic, byte* pl, unsigned int length) { if (topic.startsWith(MQTT_TOPIC_WEATHER)) { // Weather stuff topic.remove(0, strlen(MQTT_TOPIC_WEATHER)); - LOGln("MQTT * Weather stuff."); + DBG("MQTT * Weather stuff."); if (topic.startsWith("icons/")) { topic.remove(0, 6); uint8_t id = topic.toInt(); @@ -39,7 +39,7 @@ void mqtt_callback(char* original_topic, byte* pl, unsigned int length) { uint8_t val = payload.toInt(); if (val==0) return; weather_icon_ids[id] = val; - LOGln("Set weather_icon_ids[%d] to value %d", id, val); + DBG("Set weather_icon_ids[%d] to value %d", id, val); } else if (topic.startsWith("temperatures/")) { topic.remove(0, 13); uint8_t id = topic.toInt(); @@ -47,7 +47,7 @@ void mqtt_callback(char* original_topic, byte* pl, unsigned int length) { uint8_t val = payload.toInt(); if (val==0) return; weather_temperatures[id] = val; - LOGln("Set weather_temperatures[%d] to value %d", id, val); + DBG("Set weather_temperatures[%d] to value %d", id, val); } return; } else if (topic.equals(MQTT_TOPIC_TIMER)) {