Fix out of range cycle in zone setup for Asrock Polychrome V1 boards

This commit is contained in:
doctor64
2022-01-03 20:00:31 +00:00
committed by Adam Honse
parent 22cf62af29
commit a1dd83240d

View File

@@ -628,7 +628,7 @@ void RGBController_Polychrome::DeviceUpdateMode()
{
if(polychrome->GetASRockType() == ASROCK_TYPE_POLYCHROME_V1)
{
for(unsigned int led_idx = 0; led_idx <= leds.size(); led_idx++)
for(unsigned int led_idx = 0; led_idx < leds.size(); led_idx++)
{
polychrome->SetMode(led_idx, modes[active_mode].value, modes[active_mode].speed);
}