From 1968a4cfb18b004375af68f727b2bcaedf3ae110 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 16 Oct 2019 14:38:26 +1100 Subject: [PATCH] Copter: correct compilation when SYSTEMID mode is disabled --- ArduCopter/tuning.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArduCopter/tuning.cpp b/ArduCopter/tuning.cpp index 0744f3f4ac..693c88303a 100644 --- a/ArduCopter/tuning.cpp +++ b/ArduCopter/tuning.cpp @@ -228,10 +228,10 @@ void Copter::tuning() break; #endif -#if MODE_SYSTEMID_ENABLED == ENABLED case TUNING_SYSTEM_ID_MAGNITUDE: +#if MODE_SYSTEMID_ENABLED == ENABLED copter.mode_systemid.set_magnitude(tuning_value); - break; - } #endif + break; + } }