print warning on DPT *.0

This commit is contained in:
Thomas Kunze 2019-09-02 22:04:07 +02:00
parent 923e50bf9c
commit 5577774ef9

View File

@ -1,11 +1,16 @@
#include "dpt.h"
#include "bits.h"
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");
}
bool Dpt::operator==(const Dpt& other) const
{