particle-iot / xmastree

🎄 Happy Holidays from Particle 🎄
https://particle-iot.github.io/xmastree
23 stars 8 forks source link

Crashes with DeviceOS 2.0.0 due to missing return #12

Open ScruffR opened 3 years ago

ScruffR commented 3 years ago

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

wesleycombs commented 2 years ago

Thanks @ScruffR - that did the trick.