diff --git a/libraries/AP_LandingGear/AP_LandingGear.h b/libraries/AP_LandingGear/AP_LandingGear.h index 12e249f655..61b5d03bb2 100644 --- a/libraries/AP_LandingGear/AP_LandingGear.h +++ b/libraries/AP_LandingGear/AP_LandingGear.h @@ -35,8 +35,8 @@ public: AP_LandingGear &operator=(const AP_LandingGear&) = delete; // get singleton instance - static AP_LandingGear &instance(void) { - return *_singleton; + static AP_LandingGear *instance(void) { + return _singleton; } // Gear command modes