From 53e0e44704ad63ae1a3642a2280690435d4f3803 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 20 Jul 2012 12:46:16 +1000 Subject: [PATCH] ACM: fixed HIL build with new accel setup code --- ArduCopter/setup.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;