MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / syncFlexControlIndicatorForSettings

Method syncFlexControlIndicatorForSettings

src/gui/MainWindow_Controllers.cpp:325–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325void MainWindow::syncFlexControlIndicatorForSettings()
326{
327 if (m_flexActiveLedButton < 1 || m_flexActiveLedButton > 3) {
328 syncFlexControlDialog();
329 return;
330 }
331
332 FlexWheelMode mode = FlexWheelMode::Frequency;
333 if (flexWheelModeForAction(flexControlButtonAction(m_flexActiveLedButton, 0), mode)) {
334 m_flexWheelMode = mode;
335 setFlexControlHardwareIndicator(m_flexActiveLedButton);
336 } else {
337 m_flexWheelMode = FlexWheelMode::Frequency;
338 setFlexControlHardwareIndicator(0);
339 }
340 syncFlexControlDialog();
341}
342
343void MainWindow::setFlexControlHardwareIndicator(int button)
344{

Callers

nothing calls this directly

Calls 2

flexWheelModeForActionFunction · 0.85
flexControlButtonActionFunction · 0.85

Tested by

no test coverage detected