From 46078f8c88bed535700af2f7412e7116aef4d8e7 Mon Sep 17 00:00:00 2001 From: john30 Date: Sun, 15 Oct 2017 19:14:54 +0200 Subject: [PATCH] fix for wrong dump of value list and constant fields (fixes #112) --- src/lib/ebus/data.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/ebus/data.cpp b/src/lib/ebus/data.cpp index ee44774f..abe022b9 100644 --- a/src/lib/ebus/data.cpp +++ b/src/lib/ebus/data.cpp @@ -702,7 +702,6 @@ void ValueListDataField::dump(bool prependFieldSeparator, bool asJson, ostream* } *output << " }"; } else { - *output << FIELD_SEPARATOR; for (const auto it : m_values) { if (first) { first = false; @@ -813,7 +812,7 @@ void ConstantDataField::dump(bool prependFieldSeparator, bool asJson, ostream* o appendJson(false, "value", m_value, true, output); *output << ", \"verify\":" << (m_verify ? "true" : "false"); } else { - *output << FIELD_SEPARATOR << (m_verify?"==":"=") << m_value; + *output << (m_verify?"==":"=") << m_value; } dumpSuffix(asJson, output); }