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 b849fbb commit ff9eb23
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libraries/AP_Mount/AP_Mount_Viewpro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ void AP_Mount_Viewpro::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 ff9eb23

Please sign in to comment.