]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/intellibox.h
Use IO::Serial in the Intellibox driver
[r2c2.git] / source / libr2c2 / intellibox.h
index be25860f731d2dd41c6f08e95193ae05de31da5a..d3008d2f8ed200219d630f939d8c100f68f2dfee 100644 (file)
@@ -2,6 +2,7 @@
 #define LIBR2C2_INTELLIBOX_H_
 
 #include <map>
+#include <msp/io/serial.h>
 #include <msp/time/timestamp.h>
 #include "driver.h"
 
@@ -112,7 +113,7 @@ private:
                unsigned length;
        };
 
-       int serial_fd;
+       Msp::IO::Serial serial;
        bool power;
        bool halted;
        std::map<unsigned, Locomotive> locos;