From bdbf6874ff6a315f880c91fea6ae539f40a5b80a Mon Sep 17 00:00:00 2001 From: Bill Siever Date: Sun, 4 Sep 2022 20:47:53 -0500 Subject: [PATCH] Testing --- timeanddate.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/timeanddate.ts b/timeanddate.ts index acfd27a..bb80874 100644 --- a/timeanddate.ts +++ b/timeanddate.ts @@ -25,9 +25,9 @@ namespace timeanddate { if (lastUpdateMinute < t.minute) { const expectedAdjustmentSoFar = Math.trunc((t.hour * 60 + t.minute) / (24.0 * 60) * dailyAdjustment) const short = expectedAdjustmentSoFar - adjustmentToday - // serial.writeLine("Expected: " + expectedAdjustmentSoFar) - // serial.writeLine("Adjusted Already: " + adjustmentToday) - // serial.writeLine("short: " + short) + serial.writeLine("Expected: " + expectedAdjustmentSoFar) + serial.writeLine("Adjusted Already: " + adjustmentToday) + serial.writeLine("short: " + short) adjustmentToday += short advanceBy(short, TimeUnit.Seconds) } @@ -45,8 +45,8 @@ namespace timeanddate { // Finish up any adjustments const short = dailyAdjustment - adjustmentToday advanceBy(short, TimeUnit.Milliseconds) - // serial.writeLine("Adjusted Already: " + adjustmentToday) - // serial.writeLine("short: " + short) + serial.writeLine("Adjusted Already: " + adjustmentToday) + serial.writeLine("short: " + short) adjustmentToday = 0 lastUpdateMinute = 0 // Already did minute update }