diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index 265a149377..cae5eaef0b 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -987,11 +987,13 @@ bool AP_Arming::system_checks(bool report) } if (check_enabled(ARMING_CHECK_PARAMETERS)) { +#if AP_RPM_ENABLED auto *rpm = AP::rpm(); if (rpm && !rpm->arming_checks(sizeof(buffer), buffer)) { check_failed(ARMING_CHECK_PARAMETERS, report, "%s", buffer); return false; } +#endif auto *relay = AP::relay(); if (relay && !relay->arming_checks(sizeof(buffer), buffer)) { check_failed(ARMING_CHECK_PARAMETERS, report, "%s", buffer);