Open aramaziakin opened 4 years ago
I just remember I have another ESP8266 board lying around (a NodeMCU) but I'm getting exactly the same error with that too.
Did you try with the last version of arduino-esp8266 platform?
same
Could you indicate the version of arduino-esp8266 used in board manager ?
This line could be the culprit: https://github.com/sui77/rc-switch/blob/a847651c3238856611fa3b9b6a48eb1f87c0313c/RCSwitch.cpp#L601
According to https://github.com/sui77/rc-switch/issues/46#issuecomment-559992175 it could be replaced with:
if ((A - B)>0) return (A - B); else return -(A - B) ;
This could be an error occurring randomly depending on the rest of the sketch (the compiler decides what to leave out of IRAM). @aramaziakin , @Lazare-C . Please try it and see if it solves the problem. Although I could not reproduce it, if it solves your problem it would be worth to be changed in the library.
I'm trying to get the receive demo working on a D1 Mini but as far as I can tell it crashes everytime I start it with this being printed to the serial monitor several times a second.
Attaching a 433 receiver board doesn't make any difference, neither does changing the receiver pin in the code, and the board works fine with the Wifi scan example.