Allow mode specific color mode for SetCustomMode

This commit is contained in:
Adam Honse 2022-08-21 22:08:23 -05:00
parent 1396cc8f92
commit 389cdf340f

View file

@ -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;