pimoroni / enviro

MIT License
105 stars 85 forks source link

Fix Warning LED #31

Closed helgibbons closed 2 years ago

helgibbons commented 2 years ago

Here's a (probably hacky) fix for #30 :)

waveform80 commented 2 years ago

I think it should be possible to fix this without needing to change the prototype of warn_led (as this PR does):

I've posted an alternate PR for #30 in #32. The method posted here should work too, but I'd be a little nervous about changing warn_led to expect a string as that would potentially break anyone currently relying on the existing definition.

helgibbons commented 2 years ago

Thanks - yeah, seemed like there was probably a better way of getting it working than stringifying everything :)

lowfatcode commented 2 years ago

Thank you! This has been fixed in https://github.com/pimoroni/enviro/commit/f078ee1658c8c908b29fe53f16b3b967ccb46213