Skip to content

Commit

Permalink
Scope: fixed mag sq derivative scale display
Browse files Browse the repository at this point in the history
  • Loading branch information
f4exb committed Dec 1, 2023
1 parent 9307d7a commit f2db907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdrgui/gui/glscope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1893,7 +1893,6 @@ void GLScope::setYScale(ScaleEngine &scale, uint32_t highlightedTraceIndex)
break;
case Projector::ProjectionMagLin:
case Projector::ProjectionMagSq:
case Projector::ProjectionDMagSq:
if (amp_range < 1e-9) {
scale.setRange(Unit::None, amp_ofs * 1e12, amp_range * 1e12 + amp_ofs * 1e12);
} else if (amp_range < 1e-6) {
Expand All @@ -1920,6 +1919,7 @@ void GLScope::setYScale(ScaleEngine &scale, uint32_t highlightedTraceIndex)
// break;
case Projector::ProjectionReal: // Linear generic
case Projector::ProjectionImag:
case Projector::ProjectionDMagSq:
default:
if (amp_range < 1e-9) {
scale.setRange(Unit::None, -amp_range * 5e11 + amp_ofs * 1e12, amp_range * 5e11 + amp_ofs * 1e12);
Expand Down

0 comments on commit f2db907

Please sign in to comment.