| 40 | static uint32_t syncInterval = 300; // time sync will be attempted after this many seconds |
| 41 | |
| 42 | void refreshCache(time_t t) { |
| 43 | if (t != cacheTime) { |
| 44 | breakTime(t, tm); |
| 45 | cacheTime = t; |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | int hour() { // the hour now |
| 50 | return hour(now()); |