fix compiler warnings

This commit is contained in:
John
2022-05-01 12:23:28 +02:00
parent 232164c866
commit f40a4fb472
+2 -1
View File
@@ -265,7 +265,9 @@ result_t getFieldLength(const SingleDataField *field, dtlf_t *length) {
.hasDivisor = nt->getDivisor()!=1,
.isFloat = dt->hasFlag(EXP),
.isSigned = dt->hasFlag(SIG),
.lastValueSent = false,
.length = static_cast<uint8_t>(bitCnt/8),
.lastValue = 0,
}};
return RESULT_OK;
}
@@ -801,7 +803,6 @@ void KnxHandler::run() {
continue;
}
for (auto destFlags : mit->second) {
bool isWrite = (destFlags&FLAG_WRITE)!=0; // from KNX perspective
auto sit = m_subscribedGroups.find(destFlags);
if (sit == m_subscribedGroups.end()) {
continue;