Unbreak OK filter on mqtt

This commit is contained in:
QuantumEntangledAndy committed 2023-10-17 19:43:57 +07:00
1 parent 6f24056ad1
commit 0702110f1f
1 file changed
+5 -3
+5 -3
View File
@@ -573,13 +573,15 @@ async fn handle_mqtt_message(
match msg.as_ref() {
MqttReplyRef {
topic: _,
message: message @ "OK",
message: "OK",
}
| MqttReplyRef {
topic: _,
message: message @ "FAIL",
message: "FAIL",
} => {
// Do nothing for the success/fail replies
}
| MqttReplyRef { topic: _, message }
MqttReplyRef { topic: _, message }
if message.starts_with("FAIL:") || message.starts_with("OK:") =>
{
// Do nothing for the success/fail replies