mirror of https://github.com/ArduPilot/ardupilot
ACM: fixed HIL build with new accel setup code
This commit is contained in:
parent
d0ebb4ca26
commit
53e0e44704
|
@ -258,7 +258,7 @@ setup_accel(uint8_t argc, const Menu::arg *argv)
|
||||||
static int8_t
|
static int8_t
|
||||||
setup_accel_scale(uint8_t argc, const Menu::arg *argv)
|
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;
|
int8_t accel_num;
|
||||||
float accel_avg = 0;
|
float accel_avg = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue