X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fintellibox.h;h=efdf3b2edd633b72fe54a1f0471b75d45269bef4;hb=32316772d422223827833366a7ee2d0a76d76ff1;hp=be25860f731d2dd41c6f08e95193ae05de31da5a;hpb=d15ac13f2e170f155b4bbd124df48400c339b644;p=r2c2.git diff --git a/source/libr2c2/intellibox.h b/source/libr2c2/intellibox.h index be25860..efdf3b2 100644 --- a/source/libr2c2/intellibox.h +++ b/source/libr2c2/intellibox.h @@ -2,6 +2,7 @@ #define LIBR2C2_INTELLIBOX_H_ #include +#include #include #include "driver.h" @@ -61,7 +62,7 @@ private: ERR_NO_I2C_SPACE, ERR_LOW_TURNOUT_SPACE=0x40, ERR_LOK_HALTED, - ERR_LOK_POWER_OFF, + ERR_LOK_POWER_OFF }; enum Protocol @@ -112,7 +113,7 @@ private: unsigned length; }; - int serial_fd; + Msp::IO::Serial serial; bool power; bool halted; std::map locos;