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 committed Aug 31, 2023
1 parent e4d8f5c commit f6f10cd
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 @@ -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();
}

Expand Down

0 comments on commit f6f10cd

Please sign in to comment.