Skip to content

Commit

Permalink
removed unused member variables (based on this PR: #28)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus10110 committed Oct 28, 2024
1 parent deb5da0 commit 6d79972
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/SimpleSerialAnalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ void SimpleSerialAnalyzer::SetupResults()

void SimpleSerialAnalyzer::WorkerThread()
{
mSampleRateHz = GetSampleRate();
U32 sample_rate_hz = GetSampleRate();

mSerial = GetAnalyzerChannelData( mSettings.mInputChannel );

if( mSerial->GetBitState() == BIT_LOW )
mSerial->AdvanceToNextEdge();

U32 samples_per_bit = mSampleRateHz / mSettings.mBitRate;
U32 samples_to_first_center_of_first_data_bit = U32( 1.5 * double( mSampleRateHz ) / double( mSettings.mBitRate ) );
U32 samples_per_bit = sample_rate_hz / mSettings.mBitRate;
U32 samples_to_first_center_of_first_data_bit = U32( 1.5 * double( sample_rate_hz ) / double( mSettings.mBitRate ) );

for( ; ; )
{
Expand Down
5 changes: 0 additions & 5 deletions src/SimpleSerialAnalyzer.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ class ANALYZER_EXPORT SimpleSerialAnalyzer : public Analyzer2

SimpleSerialSimulationDataGenerator mSimulationDataGenerator;
bool mSimulationInitilized;

//Serial analysis vars:
U32 mSampleRateHz;
U32 mStartOfStopBitOffset;
U32 mEndOfStopBitOffset;
};

extern "C" ANALYZER_EXPORT const char* __cdecl GetAnalyzerName();
Expand Down

0 comments on commit 6d79972

Please sign in to comment.