diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index 4da3789e56..44e98bf4b6 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -31,7 +31,7 @@ #include #include #include -#include +#include #include #include #include @@ -1090,7 +1090,7 @@ bool AP_Arming::aux_auth_checks(bool display_failure) bool AP_Arming::generator_checks(bool display_failure) const { #if GENERATOR_ENABLED - const AP_Generator_RichenPower *generator = AP::generator(); + const AP_Generator *generator = AP::generator(); if (generator == nullptr) { return true; }