прошивка по записи RTC для старых часов rally
This commit is contained in:
135
2024-07-28 20:57:14 +03:00
parent 3f97f3f02a
commit fc069bd63e
5 changed files with 66 additions and 33 deletions

View File

@@ -15,6 +15,7 @@ bool NewSec = false;
bool NewMin = false;
bool NewHour = false;
time_t Loc_t = 0;
time_t RTC_t = 0;
byte last_min = -1;
byte last_5min = -1;
byte last_hour = -1;
@@ -35,6 +36,7 @@ void GPS_RTC_Clock_loop() {
void Sec_Flip(time_t t) { // called from RTC_com
Loc_t = TZ_Sec(t); // convert UTC to Local Time
RTC_t = t;
NewSec = true; // set "Ready to print"
if (ResetMCU) { // set init time
ResetMCU = false;