mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
GCS:Scope: Backward Compatibility: Set Interpolation to minimum (1) when not set in config file
This commit is contained in:
parent
15c1ca4af1
commit
716bb8ec56
@ -66,6 +66,7 @@ ScopeGadgetConfiguration::ScopeGadgetConfiguration(QString classId, QSettings* q
|
||||
plotCurveConf->color = color;
|
||||
plotCurveConf->yScalePower = qSettings->value("yScalePower").toInt();
|
||||
plotCurveConf->yInterpolationSamples = qSettings->value("yInterpolationSamples").toInt();
|
||||
if (!plotCurveConf->yInterpolationSamples) plotCurveConf->yInterpolationSamples = 1; // fallback for backward compatibility with earlier versions
|
||||
plotCurveConf->yMinimum = qSettings->value("yMinimum").toDouble();
|
||||
plotCurveConf->yMaximum = qSettings->value("yMaximum").toDouble();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user