SyncToPPS interrupt IRAM_ATTR set

This commit is contained in:
Verkehrsrot 2019-04-06 12:48:17 +02:00
parent bfc45dac05
commit 83252fc62c
2 changed files with 2 additions and 2 deletions

View File

@ -154,7 +154,7 @@ time_t now(uint32_t &sysTimeMicros); // return the current time as seconds and
#endif #endif
#ifdef usePPS #ifdef usePPS
void SyncToPPS(); void IRAM_ATTR SyncToPPS();
#endif #endif
void setTime(time_t t); void setTime(time_t t);
void setTime(int hr, int min, int sec, int day, int month, int yr); void setTime(int hr, int min, int sec, int day, int month, int yr);

View File

@ -260,7 +260,7 @@ time_t sysUnsyncedTime = 0; // the time sysTime unadjusted by sync
#endif #endif
#ifdef usePPS #ifdef usePPS
void SyncToPPS() { void IRAM_ATTR SyncToPPS() {
sysTime++; sysTime++;
prevMicros = micros(); prevMicros = micros();
} }