Firmware cleanup
This commit is contained in:
@@ -39,7 +39,7 @@ inline ColorHSV rgb2hsv(const ColorRGBW &in)
|
||||
out.h = 0.0f; //NAN; // its now undefined
|
||||
return out;
|
||||
}
|
||||
if (r >= max) // > is bogus, just keeps compilor happy
|
||||
if (r >= max) // > is bogus, just keeps compiler happy
|
||||
out.h = (g - b) / delta; // between yellow & magenta
|
||||
else if (g >= max)
|
||||
out.h = 2.0f + (b - r) / delta; // between cyan & yellow
|
||||
|
||||
Reference in New Issue
Block a user