Initialize led_count in MysticLight controllers to prevent occasional crashes

This commit is contained in:
KundaPanda
2021-04-03 21:03:30 +02:00
parent 37e021fb1c
commit c8e3554442
2 changed files with 2 additions and 2 deletions

View File

@@ -106,7 +106,7 @@ void RGBController_MSIMysticLight162::SetupZones()
zone new_zone;
unsigned int led_count;
unsigned int led_count = 0;
while(zd.leds[led_count] != MSI_ZONE_NONE)
{

View File

@@ -114,7 +114,7 @@ void RGBController_MSIMysticLight185::SetupZones()
zone new_zone;
unsigned int led_count;
unsigned int led_count = 0;
while(zd.leds[led_count] != MSI_ZONE_NONE)
{