From 13cf5b2d23014a259148686f51da900ca2c1b36b Mon Sep 17 00:00:00 2001 From: john30 Date: Sun, 15 May 2016 17:38:32 +0200 Subject: [PATCH] fix for BCD in JSON --- src/lib/ebus/data.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/ebus/data.cpp b/src/lib/ebus/data.cpp index 9980d578..cf8ce74d 100644 --- a/src/lib/ebus/data.cpp +++ b/src/lib/ebus/data.cpp @@ -1173,6 +1173,7 @@ result_t NumberDataField::readSymbols(SymbolString& input, const unsigned char b if (outputFormat & OF_JSON) { output << '"'; output << setw(m_length * 2) << setfill('0'); + output << static_cast(signedValue) << setw(0); output << '"'; return RESULT_OK; }