From 125328f7c1d0e51948973fe30ed208cdb6876464 Mon Sep 17 00:00:00 2001 From: john30 Date: Sat, 26 Dec 2015 11:34:47 +0100 Subject: [PATCH] use numeric value as fallback for ValueListDataField with unknown value association --- src/lib/ebus/data.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/ebus/data.cpp b/src/lib/ebus/data.cpp index 8a1ada7a..515a223e 100644 --- a/src/lib/ebus/data.cpp +++ b/src/lib/ebus/data.cpp @@ -1232,7 +1232,9 @@ result_t ValueListDataField::readSymbols(SymbolString& input, const unsigned cha map::iterator it = m_values.find(value); if (it == m_values.end() && value != m_dataType.replacement) { - return RESULT_ERR_NOTFOUND; // value assignment not found + // fall back to raw value in input + output << setw(0) << dec << static_cast(value); + return RESULT_OK; } if (it == m_values.end()) { if (outputFormat & OF_JSON)