Minor fixes - populate Mode box correctly on initialization and reorder operations for setting Aura mode to improve reliability

This commit is contained in:
Adam Honse 2019-06-15 12:38:57 -05:00
parent 4714aec6dd
commit 7ba607be8a
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ BOOL OpenAuraSDKDialog::OnInitDialog()
mode_box->AddString(controllers[0]->modes[i].name.c_str());
}
mode_box->SetCurSel(0);
mode_box->SetCurSel(controllers[0]->GetMode());
for (int i = 0; i < controllers[0]->zones.size(); i++)
{

View file

@ -29,8 +29,8 @@ void RGBController_Aura::SetMode(int mode)
}
else
{
aura->SetDirect(false);
aura->SetMode(mode - 1);
aura->SetDirect(false);
}
}