From f5aeca60daa8e6602a59a378645a192497968317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20K=C3=A4berich?= Date: Sun, 5 Mar 2023 23:14:35 +0100 Subject: [PATCH] add reference impedance to trace storage --- Software/PC_Application/LibreVNA-GUI/Traces/trace.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Software/PC_Application/LibreVNA-GUI/Traces/trace.cpp b/Software/PC_Application/LibreVNA-GUI/Traces/trace.cpp index ac4649f..7a12ebc 100644 --- a/Software/PC_Application/LibreVNA-GUI/Traces/trace.cpp +++ b/Software/PC_Application/LibreVNA-GUI/Traces/trace.cpp @@ -779,6 +779,7 @@ nlohmann::json Trace::toJSON() break; } j["velocityFactor"] = vFactor; + j["referenceImpedance"] = reference_impedance; j["reflection"] = reflection; auto &pref = Preferences::getInstance(); @@ -913,6 +914,7 @@ void Trace::fromJSON(nlohmann::json j) // data has already been loaded if present in the file } vFactor = j.value("velocityFactor", 0.66); + reference_impedance = j.value("referenceImpedance", 50.0); reflection = j.value("reflection", false); for(auto jm : j["math"]) { QString operation = QString::fromStdString(jm.value("operation", ""));