summaryrefslogtreecommitdiffstats
path: root/tests/testplan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testplan.cpp')
-rw-r--r--tests/testplan.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testplan.cpp b/tests/testplan.cpp
index 9818a8360..e73070439 100644
--- a/tests/testplan.cpp
+++ b/tests/testplan.cpp
@@ -14,7 +14,7 @@ extern pressure_t first_ceiling_pressure;
void setupPrefs()
{
- prefs = default_prefs;
+ copy_prefs(&default_prefs, &prefs);
prefs.ascrate50 = feet_to_mm(30) / 60;
prefs.ascrate75 = prefs.ascrate50;
prefs.ascratestops = prefs.ascrate50;
@@ -24,7 +24,7 @@ void setupPrefs()
void setupPrefsVpmb()
{
- prefs = default_prefs;
+ copy_prefs(&default_prefs, &prefs);
prefs.ascrate50 = 10000 / 60;
prefs.ascrate75 = prefs.ascrate50;
prefs.ascratestops = prefs.ascrate50;