Cleanup.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Fabian Schlenz 2019-06-18 18:18:07 +02:00
parent 8c9e9e2e2e
commit 74b967392d
3 changed files with 4 additions and 16 deletions

View File

@ -1,11 +0,0 @@
#ifndef EffectEntry_H
#define EffectEntry_H
#include "Effect.h"
typedef struct {
const char* name;
Effect* effect;
} EffectEntry;
#endif

View File

@ -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();
}

View File

@ -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();
}