X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Flocomotive.h;h=4a6770ec6c9feb701165828286d49bd52b9a1801;hb=025c23f199c411cc2ec1a6d2e85bf24460150ceb;hp=4c1f056eefec7ab65bf0ab0906dd461f3eba2624;hpb=f9254f57b736927a57a2fd793ee18f6c9766dd43;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);