While compiling it for an ESP12F, essentially an 8266 clone, I came across compilation errors of PulseSensor.cpp. It had to do with SREG which apparently is not present there. The following remedee from internet worked:
-
Remove all lines which mention SREG (4 in total)
-
At the end of the two routines, switch in interrupts by the call interrupts() just like where at the beginning of the routine noInterrupts() are called.
Cheers, Ger
While compiling it for an ESP12F, essentially an 8266 clone, I came across compilation errors of PulseSensor.cpp. It had to do with SREG which apparently is not present there. The following remedee from internet worked:
Remove all lines which mention SREG (4 in total)
At the end of the two routines, switch in interrupts by the call interrupts() just like where at the beginning of the routine noInterrupts() are called.
Cheers, Ger