diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-07-19 23:13:07 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-07-19 23:13:07 +0200 |
commit | 06b0a16d2635dba071ea7967f32c2aabe2b9cbcc (patch) | |
tree | 0d5d9c40f0dbc8d1fadc89e1da897075ecc52a8a /apps/sm-serial-read-all.cpp | |
parent | ae2d05eee4ffcec4c0611d907779ce8ef61d3a6e (diff) | |
download | ble-toys-06b0a16d2635dba071ea7967f32c2aabe2b9cbcc.tar.gz ble-toys-06b0a16d2635dba071ea7967f32c2aabe2b9cbcc.tar.bz2 ble-toys-06b0a16d2635dba071ea7967f32c2aabe2b9cbcc.tar.xz ble-toys-06b0a16d2635dba071ea7967f32c2aabe2b9cbcc.zip |
o Trying to clean up includes a bit.
Diffstat (limited to 'apps/sm-serial-read-all.cpp')
-rw-r--r-- | apps/sm-serial-read-all.cpp | 6 |
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; |