Merge pull request #3 from vojtechj/main

changed cli and sei to more portable functions
This commit is contained in:
sebmillet 2022-01-31 21:25:27 +01:00 committed by GitHub
commit 51201c6c53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1507,12 +1507,12 @@ bool Track::process_interrupt_timing() {
bool ret;
cli();
noInterrupts();
if (IH_read_head != IH_write_head) {
IH_timing_t timing = IH_timings[IH_read_head];
IH_read_head = (IH_read_head + 1) & IH_MASK;
sei();
interrupts();
#ifdef RF433ANY_DBG_TIMINGS
unsigned long t0 = micros();
#endif
@ -1534,7 +1534,7 @@ bool Track::process_interrupt_timing() {
} else {
sei();
interrupts();
ret = false;
}