Merge PR #23: Add a clear method to channel mask

This commit is contained in:
Jenkins nymea 2021-12-11 00:30:23 +01:00
commit d7db4f235d
2 changed files with 6 additions and 0 deletions

View File

@ -153,3 +153,8 @@ QDebug operator<<(QDebug debug, const ZigbeeChannelMask &channelMaks)
debug.nospace() << ") ";
return debug;
}
void ZigbeeChannelMask::clear()
{
m_channelMask = 0;
}

View File

@ -59,6 +59,7 @@ public:
bool isSet(Zigbee::ZigbeeChannel channel) const;
void setChannel(Zigbee::ZigbeeChannel channel);
void unsetChannel(Zigbee::ZigbeeChannel channel);
void clear();
ZigbeeChannelMask &operator=(const ZigbeeChannelMask &other);
bool operator==(const ZigbeeChannelMask &other) const;