From 7a0a3d30ac9c52167c089028308d96940e8517b7 Mon Sep 17 00:00:00 2001 From: Thomas Kunze Date: Wed, 12 Jun 2019 21:13:45 +0200 Subject: [PATCH] fix build? --- src/knx/dptconvert.cpp | 2 +- src/knx/knx_value.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/knx/dptconvert.cpp b/src/knx/dptconvert.cpp index f7a476d..e000c9a 100644 --- a/src/knx/dptconvert.cpp +++ b/src/knx/dptconvert.cpp @@ -590,7 +590,7 @@ int busValueToAccess(const uint8_t* payload, int payload_length, const Dpt& data { case 0: { - int digits = 0; + int32_t digits = 0; for (int n = 0, factor = 100000; n < 6; ++n, factor /= 10) { unsigned char digit = bcdFromPayload(payload, n); diff --git a/src/knx/knx_value.h b/src/knx/knx_value.h index 976996a..d03f804 100644 --- a/src/knx/knx_value.h +++ b/src/knx/knx_value.h @@ -44,7 +44,6 @@ class KNXValue KNXValue& operator=(const double value); KNXValue& operator=(const char* value); KNXValue& operator=(const struct tm value); - private: bool boolValue() const;