Initialize led_count in MysticLight controllers to prevent occasional crashes

This commit is contained in:
KundaPanda committed 2021-04-03 21:03:30 +02:00
1 parent 37e021fb1c
commit c8e3554442
2 files changed
+2 -2

No files matched your search

@@ -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)
{
@@ -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)
{