Skip to content

Commit

Permalink
mavlink: mavlink_camera: Use new cli interface
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick José Pereira <[email protected]>
  • Loading branch information
patrickelectric committed Dec 1, 2023
1 parent 6abc2b5 commit 71079e8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/mavlink/mavlink_camera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,8 @@ impl MavlinkCamera {
// and the time MAVLink connection is negotiated with the other MAVLink
// systems.
let visible_qgc_ip_address = get_visible_qgc_address();
let server_port = cli::manager::server_address()
.split(':')
.collect::<Vec<&str>>()[1];
let address = cli::manager::server_address();
let server_port = address.split(':').collect::<Vec<&str>>()[1];
let video_source_path = self.video_source_type.inner().source_string();
Url::parse(&format!(
"http://{visible_qgc_ip_address}:{server_port}/xml?file={video_source_path}"
Expand Down

0 comments on commit 71079e8

Please sign in to comment.