Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bsiever committed Sep 5, 2022
1 parent 83b38e7 commit bdbf687
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions timeanddate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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
}
Expand Down

0 comments on commit bdbf687

Please sign in to comment.