AP_Mount: use backend instead of _backends[instance]

This commit is contained in:
olliw42 2023-08-10 13:21:47 +02:00 committed by Randy Mackay
parent 8ff37bc79c
commit e2599252a1
1 changed files with 2 additions and 2 deletions

View File

@ -811,7 +811,7 @@ void AP_Mount::send_camera_information(uint8_t instance, mavlink_channel_t chan)
if (backend == nullptr) {
return;
}
_backends[instance]->send_camera_information(chan);
backend->send_camera_information(chan);
}
// send camera settings message to GCS
@ -821,7 +821,7 @@ void AP_Mount::send_camera_settings(uint8_t instance, mavlink_channel_t chan) co
if (backend == nullptr) {
return;
}
_backends[instance]->send_camera_settings(chan);
backend->send_camera_settings(chan);
}
AP_Mount_Backend *AP_Mount::get_primary() const