Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ngscopeclient/scopehal-apps
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 94c9273ac708
Choose a base ref
...
head repository: ngscopeclient/scopehal-apps
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d9981078bf01
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Apr 26, 2021

  1. WaveformArea: when creating a FFT in a new window, use sane X axis un…

    …its rather than converting fs to Hz and zooming way too far out
    azonenberg committed Apr 26, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    d998107 View commit details
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/glscopeclient/WaveformArea_events.cpp
6 changes: 6 additions & 0 deletions src/glscopeclient/WaveformArea_events.cpp
Original file line number Diff line number Diff line change
@@ -1065,7 +1065,13 @@ void WaveformArea::OnDecodeSetupComplete()
//If the decode is incompatible with our timebase, make a new group if needed
//TODO: better way to determine fixed-width stuff like eye patterns
if(eye || (m_pendingDecode->GetXAxisUnits() != m_channel.m_channel->GetXAxisUnits()) )
{
m_parent->MoveToBestGroup(area);

//If the new unit is Hz, use a reasonable default for the timebase (1 MHz/pixel)
if(m_pendingDecode->GetXAxisUnits() == Unit(Unit::UNIT_HZ))
area->m_group->m_pixelsPerXUnit = 1e-6;
}
}
}