mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-16 11:56:56 -04:00
Initialize led_count in MysticLight controllers to prevent occasional crashes
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user