made analyzer more robust
Some checks failed
Build / windows (push) Has been cancelled
Build / macos (push) Has been cancelled
Build / linux (push) Has been cancelled
Build / publish (push) Has been cancelled

This commit is contained in:
2025-12-24 10:53:38 +01:00
parent cc52743f65
commit 746cea809e

View File

@@ -26,6 +26,7 @@ void TLC59731Analyzer::SetupResults()
void TLC59731Analyzer::WorkerThread()
{
mSampleRateHz = GetSampleRate();
bool foundLegitStart = false;
mSerial = GetAnalyzerChannelData( mSettings.mInputChannel );
bool run = 1;
@@ -41,6 +42,14 @@ void TLC59731Analyzer::WorkerThread()
mSerial->AdvanceToNextEdge(); // wait for rising
}
if( !mSerial->WouldAdvancingCauseTransition( NSToSamples( 8 * 50000 ) ) && mSerial->GetBitState() == BIT_HIGH && !foundLegitStart )
{
// found something, but nothing from frame
mSerial->AdvanceToNextEdge();
foundLegitStart = true;
continue;
}
U32 data = 0;
U32 bitCtr = 1;
// measure cycletime