This commit is contained in:
parent
8c9e9e2e2e
commit
74b967392d
@ -1,11 +0,0 @@
|
||||
#ifndef EffectEntry_H
|
||||
#define EffectEntry_H
|
||||
|
||||
#include "Effect.h"
|
||||
|
||||
typedef struct {
|
||||
const char* name;
|
||||
Effect* effect;
|
||||
} EffectEntry;
|
||||
|
||||
#endif
|
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user