Skip to content

Commit

Permalink
src: lib: cli: use args() function instead of direct access
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso authored and patrickelectric committed Nov 16, 2024
1 parent c4f3185 commit bb01454
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/lib/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,7 @@ pub fn is_verbose() -> bool {

#[instrument(level = "debug")]
pub fn is_tracing() -> bool {
MANAGER
.get()
.unwrap()
.clap_matches
.enable_tracing_level_log_file
args().enable_tracing_level_log_file
}

#[instrument(level = "debug")]
Expand Down Expand Up @@ -231,11 +227,7 @@ pub fn mavlink_component_id() -> u8 {

#[instrument(level = "debug")]
pub fn mavlink_heartbeat_frequency() -> f32 {
MANAGER
.get()
.unwrap()
.clap_matches
.mavlink_heartbeat_frequency
args().mavlink_heartbeat_frequency
}

#[instrument(level = "debug")]
Expand Down

0 comments on commit bb01454

Please sign in to comment.