Skip to content

Commit

Permalink
Update mitsubishi_heatpump_mqtt_esp8266_esp32.ino
Browse files Browse the repository at this point in the history
Removed strcat
  • Loading branch information
SwiCago authored Jan 9, 2020
1 parent 63c4f1f commit 7c4fdca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ void mqttCallback(char* topic, byte* payload, unsigned int length) {
_debugMode = false;
mqtt_client.publish(heatpump_debug_topic, "debug mode disabled");
}
} else {
mqtt_client.publish(heatpump_debug_topic, strcat("heatpump: wrong mqtt topic: ", topic));
} else {//should never get called, as that would mean something went wrong with subscribe
mqtt_client.publish(heatpump_debug_topic, "heatpump: wrong topic received");
}
}

Expand Down

0 comments on commit 7c4fdca

Please sign in to comment.