mirror of https://github.com/ArduPilot/ardupilot
AP_ESC_Telem: fix compilation when HAL_WITH_ESC_TELEM == 0
This commit is contained in:
parent
bb9a81d32e
commit
13a97eecd4
|
@ -40,9 +40,12 @@ void AP_ESC_Telem_SITL::update()
|
|||
return;
|
||||
}
|
||||
|
||||
#if HAL_WITH_ESC_TELEM
|
||||
for (uint8_t i = 0; i < sitl->state.num_motors; i++) {
|
||||
update_rpm(i, sitl->state.rpm[sitl->state.vtol_motor_start+i]);
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue