]> git.tdb.fi Git - r2c2.git/commit
Instead of setting the speed of all locomotives, just enable halt mode
authorMikko Rasa <tdb@tdb.fi>
Wed, 2 Apr 2014 20:15:49 +0000 (23:15 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 2 Apr 2014 20:15:49 +0000 (23:15 +0300)
commit4d91e3e8374cd7ad927ce0d77a60498903b6e02a
tree7e7d5e083c0fa81ffe7bed7951395fa811476654
parentf2de56825be33196785c82a1418056f9e7a34461
Instead of setting the speed of all locomotives, just enable halt mode

The old code was causing an exception and segfault with ArduControl,
since locomotive IDs are not equal to their addresses.
source/engineer/engineer.cpp