Merge remote-tracking branch 'origin/master' into mqttintegration
# Conflicts: # src/lib/ebus/datatype.cpp
This commit is contained in:
@@ -34,6 +34,7 @@
|
|||||||
namespace ebusd {
|
namespace ebusd {
|
||||||
|
|
||||||
using std::dec;
|
using std::dec;
|
||||||
|
using std::defaultfloat;
|
||||||
using std::hex;
|
using std::hex;
|
||||||
using std::fixed;
|
using std::fixed;
|
||||||
using std::setfill;
|
using std::setfill;
|
||||||
@@ -746,7 +747,7 @@ result_t NumberDataType::readSymbols(size_t offset, size_t length, const SymbolS
|
|||||||
result_t NumberDataType::readFromRawValue(size_t length, unsigned int value,
|
result_t NumberDataType::readFromRawValue(size_t length, unsigned int value,
|
||||||
OutputFormat outputFormat, ostream* output) const {
|
OutputFormat outputFormat, ostream* output) const {
|
||||||
int signedValue;
|
int signedValue;
|
||||||
*output << setw(0) << dec; // initialize output
|
*output << defaultfloat << setw(0) << dec; // initialize output
|
||||||
|
|
||||||
if (!hasFlag(REQ) && value == m_replacement) {
|
if (!hasFlag(REQ) && value == m_replacement) {
|
||||||
if (outputFormat & OF_JSON) {
|
if (outputFormat & OF_JSON) {
|
||||||
|
|||||||
Reference in New Issue
Block a user