Fix LightSalt build errors on Windows
This commit is contained in:
parent
4d8466cd60
commit
e42cefdf09
2 changed files with 8 additions and 1 deletions
|
|
@ -49,6 +49,13 @@ enum
|
|||
LIGHTSALT_MODE_MAXIMUM
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
LIGHTSALT_SETS_MAX = 4,
|
||||
LIGHTSALT_ROWS_MAX = 9,
|
||||
LIGHTSALT_COLUMNS_MAX = 10
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
LIGHTSALT_SPEED_MINIMUM = 0x01,
|
||||
|
|
|
|||
|
|
@ -396,7 +396,7 @@ void RGBController_LightSalt::DeviceUpdateColors(bool save)
|
|||
int rows = table.led.rows;
|
||||
int columns = table.led.columns;
|
||||
|
||||
RGBColor colors_data[sets][rows][columns];
|
||||
RGBColor colors_data[LIGHTSALT_SETS_MAX][LIGHTSALT_ROWS_MAX][LIGHTSALT_COLUMNS_MAX];
|
||||
memset(colors_data, 0x00, sizeof(colors_data));
|
||||
|
||||
for(int led_idx = 0; led_idx < table.led.count; led_idx++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue