SyncToPPS interrupt IRAM_ATTR set
This commit is contained in:
parent
bfc45dac05
commit
83252fc62c
@ -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);
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user