adapted requirements first bit
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-21 22:04:09 +01:00
parent 866e5e9a7d
commit b759e3e6aa

View File

@@ -2,6 +2,7 @@
#include "TLC59731AnalyzerSettings.h"
#include <AnalyzerChannelData.h>
#include <AnalyzerResults.h>
#include <LogicPublicTypes.h>
TLC59731Analyzer::TLC59731Analyzer() : Analyzer2(), mSettings(), mSimulationInitilized( false )
{
@@ -28,7 +29,7 @@ void TLC59731Analyzer::WorkerThread()
mSerial = GetAnalyzerChannelData( mSettings.mInputChannel );
while( SamplesToNS( mSerial->GetSampleOfNextEdge() - mSerial->GetSampleNumber() ) < TLL_MIN )
while( SamplesToNS( mSerial->GetSampleOfNextEdge() - mSerial->GetSampleNumber() ) < TLL_MIN || mSerial->GetBitState() == BIT_HIGH )
{
mSerial->AdvanceToNextEdge();
}
@@ -53,7 +54,7 @@ void TLC59731Analyzer::WorkerThread()
while( 1 )
{
mSerial->AdvanceToNextEdge(); // falling edge
if( SamplesToNS( mSerial->GetSampleOfNextEdge() - SoB ) < cycleTime / 2 )
if( SamplesToNS( mSerial->GetSampleOfNextEdge() - SoB ) < cycleTime / 2.0 + 1000 )
{
// 1
data <<= 1;