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
|
||||
#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);
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user