diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-07-19 20:02:00 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-07-19 20:02:00 +0200 |
commit | 0374af511d7efdb856af372f126e66e5a78841d7 (patch) | |
tree | b63444108dbccf7ce1ddd3c0bb8ab9ac4f1aebaa /apps/sm-serial-read.h | |
parent | bfcc6e18af33d21ae3ae23def873fa6415045bec (diff) | |
download | ble-toys-0374af511d7efdb856af372f126e66e5a78841d7.tar.gz ble-toys-0374af511d7efdb856af372f126e66e5a78841d7.tar.bz2 ble-toys-0374af511d7efdb856af372f126e66e5a78841d7.tar.xz ble-toys-0374af511d7efdb856af372f126e66e5a78841d7.zip |
o Applying clang-format to all apps.
Diffstat (limited to 'apps/sm-serial-read.h')
-rw-r--r-- | apps/sm-serial-read.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/apps/sm-serial-read.h b/apps/sm-serial-read.h index 7a6bcb4..dcfcc73 100644 --- a/apps/sm-serial-read.h +++ b/apps/sm-serial-read.h @@ -22,8 +22,8 @@ namespace sm_serial_read_utils { class port_handler { public: - port_handler(string port_name, serial_port &serial_port, shared_ptr<KeyValueSampleStreamParser> input) : - port_name(port_name), port(serial_port), input(input) { + port_handler(string port_name, serial_port &serial_port, shared_ptr<KeyValueSampleStreamParser> input) + : port_name(port_name), port(serial_port), input(input) { } void run() { @@ -49,7 +49,6 @@ private: shared_ptr<KeyValueSampleStreamParser> input; }; - } class sm_serial_read : public app { @@ -64,9 +63,9 @@ public: sample_format_type format; void add_options(po::options_description_easy_init &options) override { - options - ("port", po::value<string>()->required(), "The serial port to read") - ("format", po::value<sample_format_type>(&format)->default_value(sample_format_type::KEY_VALUE), "Output format"); + options("port", po::value<string>()->required(), "The serial port to read"); + options("format", po::value<sample_format_type>(&format)->default_value(sample_format_type::KEY_VALUE), + "Output format"); } int main(app_execution &execution) override { @@ -103,8 +102,6 @@ public: return EXIT_SUCCESS; } - }; - } } |