Skip to content

Commit 80fdea6

Browse files
committed
ThunderScopeOscilloscope: fixed single-shot triggering
1 parent 3d288e1 commit 80fdea6

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

scopehal/ThunderScopeOscilloscope.cpp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,12 @@ void ThunderScopeOscilloscope::Start()
587587
{
588588
m_triggerArmed = true; //FIXME
589589

590-
RemoteBridgeOscilloscope::Start();
590+
m_transport->SendCommandQueued("NORMAL");
591+
m_transport->SendCommandQueued("RUN");
592+
593+
m_triggerArmed = true;
594+
m_triggerOneShot = false;
595+
591596
ResetPerCaptureDiagnostics();
592597
}
593598

@@ -599,7 +604,12 @@ void ThunderScopeOscilloscope::StartSingleTrigger()
599604

600605
void ThunderScopeOscilloscope::ForceTrigger()
601606
{
602-
RemoteBridgeOscilloscope::ForceTrigger();
607+
m_transport->SendCommandQueued("SINGLE");
608+
m_transport->SendCommandQueued("FORCE");
609+
610+
m_triggerArmed = true;
611+
m_triggerOneShot = true;
612+
603613
ResetPerCaptureDiagnostics();
604614
}
605615

0 commit comments

Comments
 (0)