mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-13 23:45:25 +00:00
Build fix
This commit is contained in:
parent
a675f56f9c
commit
a07c55889f
@ -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++){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user