Fix more warnings

This commit is contained in:
Adam Honse 2023-07-05 23:27:32 -05:00
parent 25d7ea3e6a
commit b8f4b081a4
5 changed files with 14 additions and 8 deletions

View file

@ -161,7 +161,7 @@ void KasaSmartController::SetColor(unsigned char red, unsigned char green, unsig
| Normalize case where hue is "-1" undefined |
\*------------------------------------------*/
unsigned int normalized_hue = hsv.hue;
if(hsv.hue == (int)-1)
if(hsv.hue == (unsigned int)-1)
{
normalized_hue = 0;
}