mirror of
https://github.com/thelsing/knx.git
synced 2025-11-07 01:20:20 +01:00
- Fixed sub group "0" should not trigger a warning for DPTs 14-16.
- Fixed typing mistake in warning.
This commit is contained in:
parent
598a9971c8
commit
71c7e60b66
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user