Skip to content

Commit

Permalink
fix: fixed trigger channel combo
Browse files Browse the repository at this point in the history
  • Loading branch information
klonyyy committed Aug 23, 2023
1 parent cdda0ce commit acadefa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Gui/GuiSwoControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ void Gui::drawSettingsSwo()
tracePlotHandler->setSettings(settings); });

const char* triggers[] = {"OFF", "CH0", "CH1", "CH2", "CH3", "CH4", "CH5", "CH6", "CH7", "CH8", "CH9"};
int32_t trigerCombo = settings.tracePrescaler + 1;
int32_t trigerCombo = settings.triggerChannel + 1;
ImGui::Text("trigger channel ");
ImGui::SameLine();
if (ImGui::Combo("##combo", &trigerCombo, triggers, IM_ARRAYSIZE(triggers)))
if (ImGui::Combo("trigger", &trigerCombo, triggers, IM_ARRAYSIZE(triggers)))
{
settings.triggerChannel = trigerCombo - 1;
tracePlotHandler->setSettings(settings);
Expand Down

0 comments on commit acadefa

Please sign in to comment.