Skip to content

Commit

Permalink
AP_Mount: Do not perform unnecessary processing
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura authored and peterbarker committed Apr 11, 2024
1 parent ff9eb23 commit 50dafa3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libraries/AP_Mount/AP_Mount_Siyi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,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();
}

Expand Down

0 comments on commit 50dafa3

Please sign in to comment.