Skip to content

Commit

Permalink
Update main.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
wiiznokes committed Sep 29, 2024
1 parent 4a4e271 commit a5d66c6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ fn setup_logs(args: &Args) {
}

fn try_run() -> Result<()> {


let bridge = hardware::new()?;

let args = Args::parse();
setup_logs(&args);

Expand All @@ -92,7 +96,6 @@ fn try_run() -> Result<()> {

let dir_manager = DirManager::new(&args.config_dir_path, &args.config_name);

let bridge = hardware::new()?;
let hardware = bridge.hardware();

debug!("sensors found: {:?}", hardware);
Expand Down

0 comments on commit a5d66c6

Please sign in to comment.