AP_ESC_Telem: fix compilation when HAL_WITH_ESC_TELEM == 0

This commit is contained in:
Dr.-Ing. Amilcar do Carmo Lucas 2021-04-16 20:11:18 +02:00 committed by Peter Barker
parent bb9a81d32e
commit 13a97eecd4
1 changed files with 3 additions and 0 deletions

View File

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