Skip to content

Commit

Permalink
[Controller] Fix really strange merge issue (return statement got lost)
Browse files Browse the repository at this point in the history
  • Loading branch information
TD-er committed Oct 2, 2024
1 parent b590c2f commit 632e16b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/src/ESPEasyCore/Controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ void SendStatus(struct EventStruct *event, const __FlashStringHelper *status)

void SendStatus(struct EventStruct *event, const String& status)
{
if (status.isEmpty()) {}
if (status.isEmpty()) { return; }

switch (event->Source)
{
Expand Down Expand Up @@ -870,6 +870,7 @@ void MQTTStatus(struct EventStruct *event, const String& status)

if (DomoticzMQTT_controllerIndex == enabledMqttController) {
// Do not send MQTT status updates to Domoticz
return;
}
String pubname;
bool mqtt_retainFlag;
Expand Down Expand Up @@ -971,7 +972,7 @@ void SensorSendTask(struct EventStruct *event, unsigned long timestampUnixTime)

void SensorSendTask(struct EventStruct *event, unsigned long timestampUnixTime, unsigned long lasttimer)
{
if (!validTaskIndex(event->TaskIndex)) {}
if (!validTaskIndex(event->TaskIndex)) { return; }

// FIXME TD-er: Should a 'disabled' task be rescheduled?
// If not, then it should be rescheduled after the check to see if it is enabled.
Expand Down

0 comments on commit 632e16b

Please sign in to comment.