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;