Skip to content

Commit

Permalink
Improve
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-EEE committed Apr 12, 2024
1 parent 7a4274d commit 6e83c20
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/rpi/tui/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,10 @@ std::unique_ptr<lidar::LidarDevice> getLidarDevice()
Configuration configuration;
#ifdef __linux
configuration.lidar_port = "/dev/ttyUSB0";
auto maybe_scanner = LidarScanner::create(std::make_shared<Configuration>(configuration));
#else
configuration.lidar_port = "COM3";
auto maybe_scanner = LidarScanner::create(std::make_shared<Configuration>(configuration));
#endif
auto maybe_scanner = LidarScanner::create(std::make_shared<Configuration>(configuration));
if (maybe_scanner.has_value())
{
spdlog::info("Found and using Lidar Scanner\n");
Expand Down

0 comments on commit 6e83c20

Please sign in to comment.