X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Flibmarklin%2Flocomotive.cpp;h=32f2ecc1a185f2fa1ac387cb4659ad61e1926f01;hb=7839b7c3d782abb5c98a24d51cae109407068c02;hp=a42d8d7820f0c4b3ce18e3c0bf7bfc19a7a6e8f4;hpb=3df8cb5c78fbb0b919bcb79677c6c788b8028482;p=r2c2.git diff --git a/source/libmarklin/locomotive.cpp b/source/libmarklin/locomotive.cpp index a42d8d7..32f2ecc 100644 --- a/source/libmarklin/locomotive.cpp +++ b/source/libmarklin/locomotive.cpp @@ -1,7 +1,7 @@ /* $Id$ This file is part of the MSP Märklin suite -Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa +Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ @@ -33,8 +33,10 @@ Locomotive::Locomotive(const LocoType &t, Control &c, unsigned a): void Locomotive::set_speed(unsigned spd) { - speed=min(spd, 14U); + spd=min(spd, 14U); + signal_speed_changing.emit(spd); + speed=spd; send_command(false); signal_speed_changed.emit(speed);