mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 15:04:11 +00:00
Graph display bugfixes
This commit is contained in:
parent
3a88e10875
commit
1a7212191a
4 changed files with 39 additions and 22 deletions
|
|
@ -166,6 +166,11 @@ void Trace::removeMarker(TraceMarker *m)
|
|||
|
||||
void Trace::updateTimeDomainData()
|
||||
{
|
||||
if(_data.size() < 2) {
|
||||
// can't compute anything
|
||||
timeDomain.clear();
|
||||
return;
|
||||
}
|
||||
// using namespace std::chrono;
|
||||
// auto starttime = duration_cast< milliseconds >(
|
||||
// system_clock::now().time_since_epoch()
|
||||
|
|
@ -221,7 +226,7 @@ void Trace::updateTimeDomainData()
|
|||
t.impedance = numeric_limits<double>::quiet_NaN();
|
||||
}
|
||||
last_step += t.impulseResponse;
|
||||
timeDomain.push_back(t);
|
||||
timeDomain[i] = t;
|
||||
}
|
||||
// auto duration = duration_cast< milliseconds >(
|
||||
// system_clock::now().time_since_epoch()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue