From 6e83c201e5e799f4e8ac5a28b257353ec5815f27 Mon Sep 17 00:00:00 2001 From: Chi Huu Huynh <73843190+Chi-EEE@users.noreply.github.com> Date: Fri, 12 Apr 2024 17:49:00 +0100 Subject: [PATCH] Improve --- app/rpi/tui/src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/rpi/tui/src/main.cpp b/app/rpi/tui/src/main.cpp index 30ae008b..382112af 100644 --- a/app/rpi/tui/src/main.cpp +++ b/app/rpi/tui/src/main.cpp @@ -112,11 +112,10 @@ std::unique_ptr getLidarDevice() Configuration configuration; #ifdef __linux configuration.lidar_port = "/dev/ttyUSB0"; - auto maybe_scanner = LidarScanner::create(std::make_shared(configuration)); #else configuration.lidar_port = "COM3"; - auto maybe_scanner = LidarScanner::create(std::make_shared(configuration)); #endif + auto maybe_scanner = LidarScanner::create(std::make_shared(configuration)); if (maybe_scanner.has_value()) { spdlog::info("Found and using Lidar Scanner\n");