From 83252fc62c54ec41d0a95d7afa636ab86531b124 Mon Sep 17 00:00:00 2001 From: Verkehrsrot Date: Sat, 6 Apr 2019 12:48:17 +0200 Subject: [PATCH] SyncToPPS interrupt IRAM_ATTR set --- lib/microTime/src/TimeLib.h | 2 +- lib/microTime/src/microTime.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/microTime/src/TimeLib.h b/lib/microTime/src/TimeLib.h index 45efb398..2e3a7f44 100644 --- a/lib/microTime/src/TimeLib.h +++ b/lib/microTime/src/TimeLib.h @@ -154,7 +154,7 @@ time_t now(uint32_t &sysTimeMicros); // return the current time as seconds and #endif #ifdef usePPS -void SyncToPPS(); +void IRAM_ATTR SyncToPPS(); #endif void setTime(time_t t); void setTime(int hr, int min, int sec, int day, int month, int yr); diff --git a/lib/microTime/src/microTime.cpp b/lib/microTime/src/microTime.cpp index 4dd745ad..055c8cf7 100644 --- a/lib/microTime/src/microTime.cpp +++ b/lib/microTime/src/microTime.cpp @@ -260,7 +260,7 @@ time_t sysUnsyncedTime = 0; // the time sysTime unadjusted by sync #endif #ifdef usePPS -void SyncToPPS() { +void IRAM_ATTR SyncToPPS() { sysTime++; prevMicros = micros(); }