diff options
Diffstat (limited to 'apps/sm-serial-read.cpp')
-rw-r--r-- | apps/sm-serial-read.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/sm-serial-read.cpp b/apps/sm-serial-read.cpp index 0d0bfe6..10981e0 100644 --- a/apps/sm-serial-read.cpp +++ b/apps/sm-serial-read.cpp @@ -59,7 +59,7 @@ string hostname = get_hostname(); class port_handler { public: - port_handler(string device, serial_port &serial_port, shared_ptr<CsvSampleParser> input) : + port_handler(string device, serial_port &serial_port, shared_ptr<KeyValueSampleParser> input) : device(device), port(serial_port), input(input) { } @@ -84,7 +84,7 @@ private: uint8_t data[size]; mutable_buffers_1 buffer = boost::asio::buffer(data, size); - shared_ptr<CsvSampleParser> input; + shared_ptr<KeyValueSampleParser> input; }; class sm_serial_read : public app { @@ -136,7 +136,7 @@ public: return EXIT_FAILURE; } - shared_ptr<CsvSampleParser> input = make_shared<CsvSampleParser>(output, dict); + shared_ptr<KeyValueSampleParser> input = make_shared<KeyValueSampleParser>(output, dict); port_handler(port_name, port, input).run(); |