From 624b3c3f166cf4183235a941ab8f3e817fa3812c Mon Sep 17 00:00:00 2001 From: cschwinne Date: Wed, 26 Apr 2017 10:13:33 +0200 Subject: [PATCH] State before April rework Attempted to fix NTP bug --- TODO.txt | 6 ++++-- wled00/wled00.ino | 3 +-- wled00/wled05_init.ino | 2 +- wled00/wled10_ntp.ino | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/TODO.txt b/TODO.txt index 333af814..1d609c1e 100644 --- a/TODO.txt +++ b/TODO.txt @@ -1,5 +1,4 @@ captive portal for ap -ntp bug simple slide transition additional color picker field implement HSB slider option @@ -12,7 +11,6 @@ use iframe for settings, seperate tabs for wifi and application confg use iframe for all adv. features? /dumpeeprom and /pusheeprom (ota lock!) (aux trigger pin) partially impl. -get NTP working audioWLED Broadcast Less traffic (distr. and scroll proc. on module) @@ -47,5 +45,9 @@ var. brightness BUGS general forced reset (usually around 48h) NTP crash (1-48h) +losing connectivity +Nightlight function +off after forced reset (system query?) +udp notifier doesn't work all the time static ip disables mdns ? authentification for security relevant areas ([/settings, /reset]) diff --git a/wled00/wled00.ino b/wled00/wled00.ino index cbcfc5bf..aae6c822 100644 --- a/wled00/wled00.ino +++ b/wled00/wled00.ino @@ -22,7 +22,7 @@ #include "CallbackFunction.h" //version in format yymmddb (b = daily build) -#define VERSION 1703202 +#define VERSION 1703251 //to toggle usb serial debug (un)comment following line #define DEBUG @@ -246,7 +246,6 @@ void loop() { #ifdef DEBUG if (millis() - debugTime > 5000) { - debugIndex = 0; DEBUG_PRINTLN("---MODULE DEBUG INFO---"); DEBUG_PRINT("Runtime: "); DEBUG_PRINTLN(millis()); DEBUG_PRINT("Unix time: "); DEBUG_PRINTLN(now()); diff --git a/wled00/wled05_init.ino b/wled00/wled05_init.ino index 7f065bee..fe0cb46a 100644 --- a/wled00/wled05_init.ino +++ b/wled00/wled05_init.ino @@ -5,7 +5,7 @@ void wledInit() { Serial.begin(115200); - + SPIFFS.begin(); { Dir dir = SPIFFS.openDir("/"); diff --git a/wled00/wled10_ntp.ino b/wled00/wled10_ntp.ino index 5c3cda94..5017d172 100644 --- a/wled00/wled10_ntp.ino +++ b/wled00/wled10_ntp.ino @@ -4,7 +4,7 @@ void handleNetworkTime() { - if (ntpEnabled && ntpConnected && millis() - ntpLastSyncTime > 50000000L) + if (ntpEnabled && ntpConnected && millis() - ntpLastSyncTime > 50000000L && WiFi.status() == WL_CONNECTED) { if (millis() - ntpPacketSentTime > 10000) {