State before April rework

Attempted to fix NTP bug
This commit is contained in:
cschwinne 2017-04-26 10:13:33 +02:00
parent 3105f834b2
commit 624b3c3f16
4 changed files with 7 additions and 6 deletions

View File

@ -1,5 +1,4 @@
captive portal for ap captive portal for ap
ntp bug
simple slide transition simple slide transition
additional color picker field additional color picker field
implement HSB slider option 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? use iframe for all adv. features?
/dumpeeprom and /pusheeprom (ota lock!) /dumpeeprom and /pusheeprom (ota lock!)
(aux trigger pin) partially impl. (aux trigger pin) partially impl.
get NTP working
audioWLED audioWLED
Broadcast Broadcast
Less traffic (distr. and scroll proc. on module) Less traffic (distr. and scroll proc. on module)
@ -47,5 +45,9 @@ var. brightness
BUGS BUGS
general forced reset (usually around 48h) general forced reset (usually around 48h)
NTP crash (1-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 static ip disables mdns
? authentification for security relevant areas ([/settings, /reset]) ? authentification for security relevant areas ([/settings, /reset])

View File

@ -22,7 +22,7 @@
#include "CallbackFunction.h" #include "CallbackFunction.h"
//version in format yymmddb (b = daily build) //version in format yymmddb (b = daily build)
#define VERSION 1703202 #define VERSION 1703251
//to toggle usb serial debug (un)comment following line //to toggle usb serial debug (un)comment following line
#define DEBUG #define DEBUG
@ -246,7 +246,6 @@ void loop() {
#ifdef DEBUG #ifdef DEBUG
if (millis() - debugTime > 5000) if (millis() - debugTime > 5000)
{ {
debugIndex = 0;
DEBUG_PRINTLN("---MODULE DEBUG INFO---"); DEBUG_PRINTLN("---MODULE DEBUG INFO---");
DEBUG_PRINT("Runtime: "); DEBUG_PRINTLN(millis()); DEBUG_PRINT("Runtime: "); DEBUG_PRINTLN(millis());
DEBUG_PRINT("Unix time: "); DEBUG_PRINTLN(now()); DEBUG_PRINT("Unix time: "); DEBUG_PRINTLN(now());

View File

@ -4,7 +4,7 @@
void handleNetworkTime() void handleNetworkTime()
{ {
if (ntpEnabled && ntpConnected && millis() - ntpLastSyncTime > 50000000L) if (ntpEnabled && ntpConnected && millis() - ntpLastSyncTime > 50000000L && WiFi.status() == WL_CONNECTED)
{ {
if (millis() - ntpPacketSentTime > 10000) if (millis() - ntpPacketSentTime > 10000)
{ {