Skip to content

Commit

Permalink
This closes #9 - error frames should not display any data. Caused by …
Browse files Browse the repository at this point in the history
…-1 unsigned int overflow
  • Loading branch information
aperepel committed Apr 10, 2016
1 parent f1d955d commit c63c209
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion source/PJONAnalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ void PJONAnalyzer::WorkerThread()
// mPJON->Advance(samples_per_bit); // TODO advance with tolerance check

Frame f;
// TODO still display the packet type?
f.mFlags = DISPLAY_AS_ERROR_FLAG;
f.mStartingSampleInclusive = sync_sample_start;
f.mEndingSampleInclusive = mPJON->GetSampleNumber();
Expand Down
1 change: 1 addition & 0 deletions source/PJONAnalyzerResults.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ void PJONAnalyzerResults::GenerateBubbleText( U64 frame_index, Channel& channel,
case Error: {
AddResultString("e");
AddResultString("Error");
break;
}

default: {
Expand Down
2 changes: 1 addition & 1 deletion source/PJONAnalyzerResults.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
enum PJONFrameType {
Sync = 1,
Data = 2,
Error = -1
Error = 255
};

class PJONAnalyzer;
Expand Down

0 comments on commit c63c209

Please sign in to comment.