Skip to content

Commit

Permalink
update manual and fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Dylan Gardham <[email protected]>
  • Loading branch information
spacejoey86 committed Nov 28, 2024
1 parent 2a9f0c9 commit 21c413c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified docs/OpenHantek6022_User_Manual.odt
Binary file not shown.
4 changes: 2 additions & 2 deletions openhantek/src/hantekdso/mathchannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ void MathChannel::calculate( DSOsamples &result ) {
case Dso::MathMode::GREAT_CH1_CH2:
// logic values: above / below trigger level
for ( auto it = mathChannel.begin(), end = mathChannel.end(); it != end; ++it, ++ch1Iterator, ++ch2Iterator )
*it = ( ( *ch1Iterator >= scope->voltage[ CH1 ].trigger ) > ( *ch2Iterator >= scope->voltage[ CH2 ].trigger )
*it = ( ( *ch1Iterator ) > ( *ch2Iterator )
? 1.0
: 0.0 );
break;
case Dso::MathMode::GREAT_CH2_CH1:
// logic values: above / below trigger level
for ( auto it = mathChannel.begin(), end = mathChannel.end(); it != end; ++it, ++ch1Iterator, ++ch2Iterator )
*it = ( ( *ch2Iterator >= scope->voltage[ CH2 ].trigger ) > ( *ch1Iterator >= scope->voltage[ CH1 ].trigger )
*it = ( ( *ch2Iterator ) > ( *ch1Iterator )
? 1.0
: 0.0 );
break;
Expand Down
2 changes: 1 addition & 1 deletion openhantek/src/hantekdso/mathmodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ QString mathModeString( MathMode mode ) {
case MathMode::GREAT_CH1_CH2:
return QCoreApplication::tr( "CH1 > CH2" );
case MathMode::GREAT_CH2_CH1:
return QCoreApplication::tr( "CH2 < CH1" );
return QCoreApplication::tr( "CH2 > CH1" );
case MathMode::LP10_CH1:
return QCoreApplication::tr( "CH1 LP10" );
case MathMode::LP10_CH2:
Expand Down

0 comments on commit 21c413c

Please sign in to comment.