From 2f6b2bba85e772bcd8787f2e6f84dbe81ca277fb Mon Sep 17 00:00:00 2001 From: john30 Date: Sun, 30 Dec 2018 11:58:28 +0100 Subject: [PATCH] fix for always enabled --mqttchanges option (fixes #241) --- ChangeLog.md | 6 ++++++ src/ebusd/mqtthandler.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog.md b/ChangeLog.md index da04c973..425e1f8c 100755 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,3 +1,9 @@ +# next version + +## Bug Fixes +* fix for always enabled "--mqttchanges" option + + # 3.3 (2018-12-26) ## Bug Fixes diff --git a/src/ebusd/mqtthandler.cpp b/src/ebusd/mqtthandler.cpp index 451c0911..ad00ba29 100755 --- a/src/ebusd/mqtthandler.cpp +++ b/src/ebusd/mqtthandler.cpp @@ -96,7 +96,7 @@ static bool g_logFromLib = false; //!< log library events static int g_version = MQTT_PROTOCOL_V31; //!< protocol version to use #endif static bool g_ignoreInvalidParams = false; //!< ignore invalid parameters during init -static bool g_onlyChanges = true; //!< whether to only publish changed messages instead of all received +static bool g_onlyChanges = false; //!< whether to only publish changed messages instead of all received #if (LIBMOSQUITTO_MAJOR >= 1) static const char* g_cafile = nullptr; //!< CA file for TLS