Copter: correct compilation when SYSTEMID mode is disabled

This commit is contained in:
Peter Barker 2019-10-16 14:38:26 +11:00 committed by Andrew Tridgell
parent 195dc50d71
commit 4fbd4168b0

View File

@ -228,10 +228,10 @@ void Copter::tuning()
break; break;
#endif #endif
#if MODE_SYSTEMID_ENABLED == ENABLED
case TUNING_SYSTEM_ID_MAGNITUDE: case TUNING_SYSTEM_ID_MAGNITUDE:
#if MODE_SYSTEMID_ENABLED == ENABLED
copter.mode_systemid.set_magnitude(tuning_value); copter.mode_systemid.set_magnitude(tuning_value);
#endif
break; break;
} }
#endif
} }