mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-20 07:35:03 -04:00
Initialize led_count in MysticLight controllers to prevent occasional crashes
This commit is contained in:
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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user