Build fix

This commit is contained in:
Gunnar Skjold 2022-03-20 20:11:29 +01:00
parent a675f56f9c
commit a07c55889f
2 changed files with 4 additions and 1 deletions

View File

@ -256,7 +256,9 @@ void setup() {
delay(1);
if(hasFs) {
LittleFS.gc();
#if defined(ESP8266)
LittleFS.gc();
#endif
bool flashed = false;
if(LittleFS.exists(FILE_FIRMWARE)) {
if (!config.hasConfig()) {

View File

@ -210,6 +210,7 @@ bool HomeAssistantMqttHandler::publishSystem(HwTools* hw) {
#elif defined(ESP32)
String haUID = WiFi.getHostname();
#endif
haUID.replace("-", "_");
String haUrl = "http://" + haUID + ".local/";
for(int i=0;i<sensors;i++){