]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/intellibox.cpp
Add helper class for processing driver options
[r2c2.git] / source / libr2c2 / intellibox.cpp
index 975c143fe46baf904d00db9b19a3777c68d627a1..4c8f2ac783b1e6fbf73bdff9aa73d2f2b1a73e2c 100644 (file)
@@ -13,8 +13,8 @@ using namespace Msp;
 
 namespace R2C2 {
 
-Intellibox::Intellibox(const string &dev):
-       serial(dev),
+Intellibox::Intellibox(const Options &opts):
+       serial(opts.get<string>(string(), "ttyUSB0")),
        power(false),
        halted(false),
        update_sensors(false),