electro-smith / libDaisy

Hardware Library for the Daisy Audio Platform
https://www.electro-smith.com/daisy
MIT License
312 stars 131 forks source link

Fixed Color::Init https://github.com/electro-smith/libDaisy/issues/595 #596

Closed Anstapen closed 7 months ago

Anstapen commented 7 months ago

Hi, as suggested by takumi-ogata in Issue https://github.com/electro-smith/libDaisy/issues/595, here is my PR for the little Bugfix of the Color::Init() function:

I changed the following line: green_ = clamp(red, 0.0f, 1.0f); to green_ = clamp(green, 0.0f, 1.0f);

I tested it with a Daisy Pod.

stephenhensley commented 7 months ago

We appreciate the contribution! Thanks for finding, and fixing this!

Bug squashed 🐛!