Closed Anstapen closed 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);
green_ = clamp(red, 0.0f, 1.0f);
green_ = clamp(green, 0.0f, 1.0f);
I tested it with a Daisy Pod.
We appreciate the contribution! Thanks for finding, and fixing this!
Bug squashed 🐛!
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);
togreen_ = clamp(green, 0.0f, 1.0f);
I tested it with a Daisy Pod.