Open DriekdeGadgetfreak opened 3 years ago
Cannot call a std library function in an ISR.
/ helper function for the receiveProtocol method / static inline unsigned int diff(int A, int B) { return abs(A - B); }
should be changed to:
/ helper function for the receiveProtocol method / static inline unsigned int diff(int A, int B) { return (A > B) ? (A - B) : (B - A); }
Now it runs flawless on the ESP32.
Could you submit a PR please from the last commit ?
I will look into it. It is the first time for me, so please be patient.
Cannot call a std library function in an ISR.
/ helper function for the receiveProtocol method / static inline unsigned int diff(int A, int B) { return abs(A - B); }
should be changed to:
/ helper function for the receiveProtocol method / static inline unsigned int diff(int A, int B) { return (A > B) ? (A - B) : (B - A); }
Now it runs flawless on the ESP32.