Open ScruffR opened 3 years ago
int playLED() fails to return a value and starting with 2.0.0 this causes a SOS panic crash.
int playLED()
Adding return strtol(color, NULL, 0); at the bottom of this function should do the trick
return strtol(color, NULL, 0);
https://github.com/particle-iot/xmastree/blob/master/src/firmware/xmastree.ino#L101
Thanks @ScruffR - that did the trick.
int playLED()
fails to return a value and starting with 2.0.0 this causes a SOS panic crash.Adding
return strtol(color, NULL, 0);
at the bottom of this function should do the trickhttps://github.com/particle-iot/xmastree/blob/master/src/firmware/xmastree.ino#L101