We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6729778 + 8bd74ac commit 980c047Copy full SHA for 980c047
1 file changed
src/knx/dpt.cpp
@@ -8,8 +8,8 @@ Dpt::Dpt()
8
Dpt::Dpt(short mainGroup, short subGroup, short index /* = 0 */)
9
: mainGroup(mainGroup), subGroup(subGroup), index(index)
10
{
11
- if (subGroup == 0)
12
- println("WARNING: You used and invalid Dpt *.0");
+ if (subGroup == 0 && (mainGroup < 14 || mainGroup > 16))
+ println("WARNING: You used an invalid Dpt *.0");
13
}
14
15
bool Dpt::operator==(const Dpt& other) const
0 commit comments