mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-27 04:33:04 +00:00
Build fix
This commit is contained in:
@@ -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()) {
|
||||
|
||||
@@ -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++){
|
||||
|
||||
Reference in New Issue
Block a user