X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Flocomotive.h;h=4a6770ec6c9feb701165828286d49bd52b9a1801;hb=010d8321e982d1684fcbff5bf6fc2bdec7cb7bae;hp=4c1f056eefec7ab65bf0ab0906dd461f3eba2624;hpb=6109a2122226e1c71e9cc71e4c21036e99e43601;p=r2c2.git diff --git a/source/libmarklin/locomotive.h b/source/libmarklin/locomotive.h index 4c1f056..4a6770e 100644 --- a/source/libmarklin/locomotive.h +++ b/source/libmarklin/locomotive.h @@ -46,6 +46,7 @@ public: unsigned get_speed() const { return speed; } bool get_reverse() const { return reverse; } bool get_function(unsigned f) const { return (funcs>>f)&1; } + unsigned get_functions() const { return funcs; } void refresh_status(); private: void send_command(bool);