xmastree icon indicating copy to clipboard operation
xmastree copied to clipboard

Crashes with DeviceOS 2.0.0 due to missing return

Open ScruffR opened this issue 4 years ago • 2 comments

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 trick

https://github.com/particle-iot/xmastree/blob/master/src/firmware/xmastree.ino#L101

ScruffR avatar Dec 11 '20 09:12 ScruffR

Thanks @ScruffR - that did the trick.

wesleycombs avatar Dec 10 '21 23:12 wesleycombs