From 4bda1a51404fc652cf3ad86c3a87ef8894dc554f Mon Sep 17 00:00:00 2001 From: John Date: Sun, 16 Jan 2022 20:00:39 +0100 Subject: [PATCH 1/2] potential fix for truncated float representation --- src/lib/ebus/datatype.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/ebus/datatype.cpp b/src/lib/ebus/datatype.cpp index 187bc129..23e58727 100755 --- a/src/lib/ebus/datatype.cpp +++ b/src/lib/ebus/datatype.cpp @@ -34,6 +34,7 @@ namespace ebusd { using std::dec; +using std::defaultfloat; using std::hex; using std::fixed; using std::setfill; @@ -731,7 +732,7 @@ result_t NumberDataType::readSymbols(size_t offset, size_t length, const SymbolS if (result != RESULT_OK) { return result; } - *output << setw(0) << dec; // initialize output + *output << defaultfloat << setw(0) << dec; // initialize output if (!hasFlag(REQ) && value == m_replacement) { if (outputFormat & OF_JSON) { From 6836e6d71d6d6dd7c26e7a6186232bcd527d269b Mon Sep 17 00:00:00 2001 From: John Date: Sat, 29 Jan 2022 13:30:21 +0100 Subject: [PATCH 2/2] corrected progress arg --- contrib/docker/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/docker/build.sh b/contrib/docker/build.sh index 694ec1a5..583f3346 100755 --- a/contrib/docker/build.sh +++ b/contrib/docker/build.sh @@ -42,7 +42,7 @@ for image in $images; do output=$(echo "$outputFmt"|sed -e "s#%IMAGE%#$image#g") docker buildx build \ --target $target \ - --progress pain \ + --progress plain \ --platform $archs \ -f Dockerfile${namesuffix} \ --build-arg "BASE_IMAGE=debian:$image" \