Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dead members (based on #28) #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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