AP_RPM: fixed #ifdef HAL_WITH_ESC_TELEM to #if HAL_WITH_ESC_TELEM

This commit is contained in:
yaapu 2021-06-30 14:20:29 +02:00 committed by Peter Barker
parent cdc874c366
commit 28905a1e67
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ AP_RPM_ESC_Telem::AP_RPM_ESC_Telem(AP_RPM &_ap_rpm, uint8_t _instance, AP_RPM::R
void AP_RPM_ESC_Telem::update(void)
{
#ifdef HAL_WITH_ESC_TELEM
#if HAL_WITH_ESC_TELEM
AP_ESC_Telem &esc_telem = AP::esc_telem();
float esc_rpm = esc_telem.get_average_motor_rpm(ap_rpm._esc_mask[state.instance]);
state.rate_rpm = esc_rpm * ap_rpm._scaling[state.instance];