Fix most compiler warnings

This commit is contained in:
Steven Franzen 2019-12-30 21:42:54 +01:00 committed by Adam Honse
parent f38b90ad52
commit dbf796256b
28 changed files with 122 additions and 145 deletions

View file

@ -96,7 +96,7 @@ void HuePlusController::SetChannelLEDs(unsigned int channel, std::vector<RGBColo
serial_buf[i] = 0x00;
}
for (int idx = 0; idx < (colors.size() * 3); idx += 3)
for (unsigned int idx = 0; idx < (colors.size() * 3); idx += 3)
{
int pixel_idx = idx / 3;
RGBColor color = colors[pixel_idx];
@ -111,4 +111,4 @@ void HuePlusController::SetChannelLEDs(unsigned int channel, std::vector<RGBColo
delete[] serial_buf;
}
}
}