From 4fc4e7c532a8b9e5aebf6bd21795a7e312abecb9 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 15 Jul 2022 21:53:41 +1000 Subject: [PATCH] AP_Arming: add and use AP_RPM_ENABLED ... and backend-specific equivalents --- libraries/AP_Arming/AP_Arming.cpp | 2 ++ 1 file changed, 2 insertions(+) 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);