Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a clock based on the notification server's timestamp to status bar #7

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

luelista
Copy link
Contributor

Max Weller added 5 commits May 27, 2017 00:46
@@ -284,11 +288,18 @@ void setup() {
String wifiLightConf = getConfig("wifilight", "255");
wifiLight = atoi(wifiLightConf.c_str());
ennotif = getConfig("ennotif", "on") == "on";

int waitforwifi=0;
while(WiFi.status()!=WL_CONNECTED && waitforwifi++<10) delay(500);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why busy waiting? The badge should also work without WiFi...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes,there is probably a better way to do what I wanted to do.
Currently, it takes five minutes until the first poll is done. With this change, it is done immediately at startup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants