Skip to content

Commit

Permalink
Fix #70: MQTT Messages where published even if no broker connection w…
Browse files Browse the repository at this point in the history
…as established
  • Loading branch information
tbnobody committed Aug 10, 2022
1 parent b40b0a1 commit 80f7ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MqttPublishing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void MqttPublishingClass::init()

void MqttPublishingClass::loop()
{
if (!MqttSettings.getConnected() && Hoymiles.getRadio()->isIdle()) {
if (!MqttSettings.getConnected() || !Hoymiles.getRadio()->isIdle()) {
return;
}

Expand Down

0 comments on commit 80f7ba8

Please sign in to comment.