mirror of
https://github.com/thelsing/knx.git
synced 2025-11-07 01:20:20 +01:00
Merge pull request #327 from OpenKNX/upstream/fix/subgroup0-warning
Fix: Do Not warn on Construction of DPT 14.000, 15.000, 16.000
This commit is contained in:
commit
980c047ad7
@ -8,8 +8,8 @@ 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 (subGroup == 0 && (mainGroup < 14 || mainGroup > 16))
|
||||
println("WARNING: You used an invalid Dpt *.0");
|
||||
}
|
||||
|
||||
bool Dpt::operator==(const Dpt& other) const
|
||||
|
||||
Loading…
Reference in New Issue
Block a user