made analyzer more robust
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user