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");