Skip to content

Commit

Permalink
Remove lockup with no time hack
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussy committed Nov 28, 2020
1 parent a3fa552 commit c54f303
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 2 additions & 3 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

## Open

- Remove lockup if there's no time hack
- Add Thingspeak support
- Return (402): {"status":"402","error":"Payment required."}
- Change so that posting configuration changes is not a complete page reload
- Add mouseover on debug items
- free = Total free bytes in the heap. Equivalent to multi_free_heap_size().
Expand Down Expand Up @@ -162,3 +159,5 @@
- ~~See if we can do something about entering a bad password on portal~~
- ~~Fix 'nan' error in Bubbles after SPIFFS upload~~
- ~~Merge update pages~~
- ~~Add ThingSpeak support~~
- ~~Remove lockup if there's no time hack~~
8 changes: 6 additions & 2 deletions src/ntp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@ void setClock()
if (cycle > 9)
{

Log.warning(F(CR "Unable to get time hack from %s, rebooting." CR), TIMESERVER);
ESP.restart();
Log.warning(F(CR "Unable to get time hack from %s, starting with epoch." CR), TIMESERVER);
blinker.detach();
#ifdef LOG_LEVEL
myPrintln();
#endif
return;
}
#ifdef LOG_LEVEL
myPrintln();
Expand Down
1 change: 1 addition & 0 deletions src/thingSpeakWork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ SOFTWARE. */

void getNewBBChannel(String &writeKey, const char *key, const char *bubName)
{
// TODO: Check for: Return (402): {"status":"402","error":"Payment required."}
String postData;

// Name the Channel
Expand Down

0 comments on commit c54f303

Please sign in to comment.