ACM: fixed HIL build with new accel setup code

This commit is contained in:
Andrew Tridgell 2012-07-20 12:46:16 +10:00
parent d0ebb4ca26
commit 53e0e44704
1 changed files with 1 additions and 1 deletions

View File

@ -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;