Allow mode specific color mode for SetCustomMode
This commit is contained in:
parent
1396cc8f92
commit
389cdf340f
1 changed files with 3 additions and 1 deletions
|
|
@ -1561,7 +1561,9 @@ void RGBController::SetCustomMode()
|
|||
{
|
||||
for(unsigned int mode_idx = 0; mode_idx < modes.size(); mode_idx++)
|
||||
{
|
||||
if(modes[mode_idx].name == custom_mode_names[custom_mode_idx] && modes[mode_idx].color_mode == MODE_COLORS_PER_LED)
|
||||
if((modes[mode_idx].name == custom_mode_names[custom_mode_idx])
|
||||
&& ((modes[mode_idx].color_mode == MODE_COLORS_PER_LED)
|
||||
|| (modes[mode_idx].color_mode == MODE_COLORS_MODE_SPECIFIC)))
|
||||
{
|
||||
active_mode = mode_idx;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue