Skip to content

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

Open
luelista wants to merge 7 commits intoentropia:masterfrom
luelista:master
Open

add a clock based on the notification server's timestamp to status bar#7
luelista wants to merge 7 commits intoentropia:masterfrom
luelista:master

Conversation

@luelista
Copy link

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
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.

3 participants

Comments