diff --git a/src/lib/ebus/data.cpp b/src/lib/ebus/data.cpp index fea73f35..c0ddcae8 100644 --- a/src/lib/ebus/data.cpp +++ b/src/lib/ebus/data.cpp @@ -552,9 +552,12 @@ void ValueListDataField::dump(ostream& output) output << FIELD_SEPARATOR; if (!m_dataType->dump(output, m_length)) { // no divisor appended for (map::iterator it = m_values.begin(); it != m_values.end(); it++) { + if (it != m_values.begin()) { + output << VALUE_SEPARATOR; + } output << static_cast(it->first) << "=" << it->second; } - } // TODO else does not fit into CSV format! + } // else: impossible since divisor is not allowed for ValueListDataField dumpString(output, m_unit); dumpString(output, m_comment); }