diff --git a/ArduCopter/setup.pde b/ArduCopter/setup.pde index 06e0da6b64..79086f65d4 100644 --- a/ArduCopter/setup.pde +++ b/ArduCopter/setup.pde @@ -258,7 +258,7 @@ setup_accel(uint8_t argc, const Menu::arg *argv) static int8_t setup_accel_scale(uint8_t argc, const Menu::arg *argv) { - #if CONFIG_ADC == ENABLED + #if CONFIG_ADC == ENABLED && HIL_MODE == HIL_MODE_DISABLED int8_t accel_num; float accel_avg = 0;