Small fixes.
This commit is contained in:
parent
3c0e4af325
commit
dfe99408c9
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user