aboutsummaryrefslogtreecommitdiff
path: root/apps/sm-serial-read-all.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'apps/sm-serial-read-all.cpp')
-rw-r--r--apps/sm-serial-read-all.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/sm-serial-read-all.cpp b/apps/sm-serial-read-all.cpp
index bf5ef11..a81a016 100644
--- a/apps/sm-serial-read-all.cpp
+++ b/apps/sm-serial-read-all.cpp
@@ -1,7 +1,7 @@
#include "trygvis/sensor.h"
#include "trygvis/sensor/io.h"
-#include "json.hpp"
#include "apps.h"
+#include <dirent.h>
#include <thread>
#include <boost/asio/serial_port.hpp>
@@ -15,7 +15,6 @@ using namespace trygvis::apps;
using namespace trygvis::sensor;
using namespace trygvis::sensor::io;
namespace po = boost::program_options;
-using json = nlohmann::json;
namespace sm_serial_read_all_utils {
@@ -58,9 +57,6 @@ private:
// This only supports Linux
#if 1
-#include <sys/types.h>
-#include <dirent.h>
-
vector<string> &&find_ports() {
DIR *dir = opendir("/dev");
vector<string> ports;