Skip to content

Commit 1c31df1

Browse files
committed
Update version, propagate fiddle changes right away
1 parent a88f370 commit 1c31df1

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

SMPTEGenerator/SMPTEGenerator.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <WiFi.h>
1919
#include <ESPmDNS.h>
2020

21-
#define VERSION "2.01c"
21+
#define VERSION "2.02"
2222

2323
// The 'red' pin is wired through a 2k2 resistor to the base of an NPN
2424
// transistor. The latter its C is pulled up by a 1k resistor to the 5V taken
@@ -110,9 +110,9 @@ void loop() {
110110
static bool ntpnosync = true;
111111
time_t n = time(NULL);
112112
if (ntpnosync) {
113-
if (n < 5 * 3600)
113+
if (n < 5 * 3600UL)
114114
return;
115-
if (n < 6 * 3600)
115+
if (n < 6 * 3600UL)
116116
Serial.println("Failed to sync; just sending what I have");
117117
else
118118
Serial.println("Synced to NTP server");

SMPTEGenerator/WebConfig.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,7 @@ void handleRoot(void)
7878
return;
7979
}
8080
server.send(200, "textbrlain", "Ok, config stored.");
81+
82+
// force the fiddle setting to be propagated to the clock.
83+
ntp_loop(true);
8184
}

0 commit comments

Comments
 (0)