From 71c7e60b66736fc38572f63914cd372bcfb468fa Mon Sep 17 00:00:00 2001 From: Andreas Breitschopp Date: Fri, 19 Sep 2025 14:28:27 +0200 Subject: [PATCH] - Fixed sub group "0" should not trigger a warning for DPTs 14-16. - Fixed typing mistake in warning. --- src/knx/dpt.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/knx/dpt.cpp b/src/knx/dpt.cpp index 9af00c2..5f67db7 100644 --- a/src/knx/dpt.cpp +++ b/src/knx/dpt.cpp @@ -8,8 +8,9 @@ Dpt::Dpt() Dpt::Dpt(short mainGroup, short subGroup, short index /* = 0 */) : mainGroup(mainGroup), subGroup(subGroup), index(index) { - if (subGroup == 0) - println("WARNING: You used and invalid Dpt *.0"); + if ((mainGroup < 14 || mainGroup > 16) && + subGroup == 0) + println("WARNING: You used an invalid Dpt *.0"); } bool Dpt::operator==(const Dpt& other) const