diff --git a/libraries/AP_Mount/AP_Mount_Siyi.cpp b/libraries/AP_Mount/AP_Mount_Siyi.cpp index 299169d160d897..4bb497f9d41b07 100644 --- a/libraries/AP_Mount/AP_Mount_Siyi.cpp +++ b/libraries/AP_Mount/AP_Mount_Siyi.cpp @@ -27,9 +27,11 @@ void AP_Mount_Siyi::init() const AP_SerialManager& serial_manager = AP::serialmanager(); _uart = serial_manager.find_serial(AP_SerialManager::SerialProtocol_Gimbal, 0); - if (_uart != nullptr) { - _initialised = true; + if (_uart == nullptr) { + return; } + + _initialised = true; AP_Mount_Backend::init(); }