From 82c97028bf9e917a3732f1257476e89d47c38ab1 Mon Sep 17 00:00:00 2001 From: muramura Date: Thu, 31 Aug 2023 01:29:43 +0900 Subject: [PATCH] AP_Mount: Do not perform unnecessary processing --- libraries/AP_Mount/AP_Mount_Siyi.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_Mount/AP_Mount_Siyi.cpp b/libraries/AP_Mount/AP_Mount_Siyi.cpp index 299169d160d897..d124a565d7a68b 100644 --- a/libraries/AP_Mount/AP_Mount_Siyi.cpp +++ b/libraries/AP_Mount/AP_Mount_Siyi.cpp @@ -29,7 +29,10 @@ void AP_Mount_Siyi::init() _uart = serial_manager.find_serial(AP_SerialManager::SerialProtocol_Gimbal, 0); if (_uart != nullptr) { _initialised = true; + } else { + return; } + AP_Mount_Backend::init(); }