Small fixes.

This commit is contained in:
Fabian Schlenz 2019-10-23 05:41:39 +02:00
parent 3c0e4af325
commit dfe99408c9
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,5 @@
#include <Arduino.h>
#include <FS.h>
#include "ntp.h"
#include "config.h"
@ -9,8 +10,8 @@
#include "functions.h"
#include "effects.h"
#include "http_server.h"
#include "recorder.h"
#include "settings.h"
#include "websockets.h"
uint8_t starting_up = OTA_STARTUP_DELAY;
int loop_timeouts = 0;
@ -43,6 +44,7 @@ void setup() {
ntp_setup();
ota_setup();
fastled_setup();
websocket_setup();
ntpClient.begin();
#ifdef HTTP_SERVER_ENABLE
http_server_setup();
@ -50,9 +52,6 @@ void setup() {
#ifdef MQTT_ENABLE
mqtt_setup();
#endif
#ifdef RECORDER_ENABLE
recorder = new Recorder();
#endif
SPIFFS.begin();
load_settings();
LOGln("Core * Setup complete");
@ -84,6 +83,7 @@ void loop() {
#ifdef HTTP_SERVER_ENABLE
http_server_loop();
#endif
websocket_loop();
EVERY_N_MILLISECONDS(100) {
baseHue++;