prepare further state uses

This commit is contained in:
John
2022-04-30 15:48:03 +02:00
parent 9bb907506e
commit 7e16af8282
+2 -2
View File
@@ -977,13 +977,13 @@ void MqttHandler::run() {
}
}
}
if (message->getDataHandlerState() == 1) {
if (message->getDataHandlerState()&1) {
// already seen in the past, check for poll prio update
if (m_definitionsSince > 1 && message->getCreateTime() <= m_definitionsSince) {
continue;
}
}
message->setDataHandlerState(1);
message->setDataHandlerState(1, true);
} else if (message->getCreateTime() <= m_definitionsSince) { // only newer defined
continue;
}