This commit is contained in:
135
2024-07-25 10:14:40 +03:00
parent 1ae6e04559
commit 7cccb3306c
5 changed files with 100 additions and 9 deletions

View File

@@ -24,8 +24,10 @@ bool SyncErr = true;
DS3232RTC myRTC(0x68); // cfg_
volatile bool RTC_sec = false; // flag for PseudoPPS
static unsigned long RTCMillis; // blinking timer
volatile unsigned long tmr_SQW;
void rtc_interrupt() {
tmr_SQW = micros();
//Serial.print("DEBUG[INT] RTC interrupt "); Serial.println(micros());
RTCMillis = millis();
RTC_sec = true;