Skip to content

Commit 980c047

Browse files
authored
Merge pull request #327 from OpenKNX/upstream/fix/subgroup0-warning
Fix: Do Not warn on Construction of DPT 14.000, 15.000, 16.000
2 parents 6729778 + 8bd74ac commit 980c047

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/knx/dpt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Dpt::Dpt()
88
Dpt::Dpt(short mainGroup, short subGroup, short index /* = 0 */)
99
: mainGroup(mainGroup), subGroup(subGroup), index(index)
1010
{
11-
if (subGroup == 0)
12-
println("WARNING: You used and invalid Dpt *.0");
11+
if (subGroup == 0 && (mainGroup < 14 || mainGroup > 16))
12+
println("WARNING: You used an invalid Dpt *.0");
1313
}
1414

1515
bool Dpt::operator==(const Dpt& other) const

0 commit comments

Comments
 (0)