From 05caf99e7c894d7cb2860d804343bd6348cc5b0f Mon Sep 17 00:00:00 2001 From: undodgy Date: Thu, 17 Feb 2022 20:44:19 +1030 Subject: [PATCH] SCTVcode.ino - minor GPS timzone fix Logic to accommodate a timezone offset where the minutes were non-zero was incomplete when using GPS time. If Minutes + Timezone_Minutes > 59 or < 0, the hour was adjusted correctly however Minutes were left unadjusted. This minor fix should increment or decrement the minutes appropriately. --- SCTVcode/SCTVcode.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SCTVcode/SCTVcode.ino b/SCTVcode/SCTVcode.ino index e7d627a..bfdf1ec 100644 --- a/SCTVcode/SCTVcode.ino +++ b/SCTVcode/SCTVcode.ino @@ -523,10 +523,12 @@ void getTheTime(void) // The minutes and hours may be out of range. Correct them if so if (Mins > 59) { + Mins -= 60; Hrs++; } if (Mins < 0) { + Mins += 60; Hrs--; } if (Hrs > 23)