MCPcopy Create free account
hub / github.com/analogdevicesinc/scopy / handleSingle

Method handleSingle

gui/src/widgets/toolmenuheaderwidget.cpp:109–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107void ToolMenuHeaderWidget::onBlinkLed(int retCode) {}
108
109void ToolMenuHeaderWidget::handleSingle(bool isSuccess)
110{
111 if(m_ledState != IDLE && m_ledState != STREAM_RUNNING) {
112 return;
113 }
114 if(m_ledState == IDLE) {
115 m_ledBtn->ledOn();
116 m_ledState = SINGLE_RUNNING;
117 } else {
118 m_ledBtn->ledOff();
119 m_ledState = SINGLE_INTERRUPT;
120 }
121 m_ledBtn->setLedState(isSuccess);
122 m_timer->start();
123}
124
125void ToolMenuHeaderWidget::handleStream(bool isSuccess)
126{

Callers

nothing calls this directly

Calls 4

ledOnMethod · 0.80
ledOffMethod · 0.80
setLedStateMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected