diff --git a/include/EffectEntry.h b/include/EffectEntry.h deleted file mode 100644 index 1a456bb..0000000 --- a/include/EffectEntry.h +++ /dev/null @@ -1,11 +0,0 @@ -#ifndef EffectEntry_H -#define EffectEntry_H - -#include "Effect.h" - -typedef struct { - const char* name; - Effect* effect; -} EffectEntry; - -#endif diff --git a/src/ota.cpp b/src/ota.cpp index 267d45a..489ad29 100644 --- a/src/ota.cpp +++ b/src/ota.cpp @@ -31,7 +31,7 @@ void ota_setup() { else if (error == OTA_END_ERROR) Serial.println("End Failed"); }); - LOG("OTA * Starting OTA with client_id "); LOGln(hostname); + LOGln("OTA * Starting OTA with client_id %s", hostname); ArduinoOTA.setHostname(hostname); ArduinoOTA.begin(); } diff --git a/src/pitrix.cpp b/src/pitrix.cpp index 8f578b1..fd70cf8 100644 --- a/src/pitrix.cpp +++ b/src/pitrix.cpp @@ -3,11 +3,9 @@ #include "ntp.h" #include "config.h" -#include "animations.h" #include "my_wifi.h" #include "ota.h" #include "my_fastled.h" -#include "EffectEntry.h" #include "my_mqtt.h" #include "functions.h" #include "effects.h" @@ -43,6 +41,7 @@ void setup() { #ifdef MQTT_ENABLE mqtt_setup(); #endif + SPIFFS.begin(); LOGln("Core * Setup complete"); } @@ -98,9 +97,9 @@ void loop() { if (MONITOR_LOOP_TIMES && millis()-loop_started_at>=MONITOR_LOOP_TIME_THRESHOLD) { - LOG("Core * Loop took "); LOG(millis()-loop_started_at); LOGln("ms."); + //LOG("Core * Loop took "); LOG(millis()-loop_started_at); LOGln("ms."); loop_timeouts++; - LOG("Core * Timeout counter is now "); LOGln(loop_timeouts); + //LOG("Core * Timeout counter is now "); LOGln(loop_timeouts); if (loop_timeouts >= MONITOR_LOOP_TIME_COUNT_MAX) { ESP.restart(); }