13
0

LTC_Slave::reset() should change _current.speed back to zero

This commit is contained in:
Paul Davis 2019-03-03 10:22:22 -07:00
parent a000faaa47
commit 42f93487b5

View File

@ -195,7 +195,7 @@ LTC_TransportMaster::reset (bool with_position)
{ {
DEBUG_TRACE (DEBUG::LTC, string_compose ("LTC reset() with pos ? %1\n", with_position)); DEBUG_TRACE (DEBUG::LTC, string_compose ("LTC reset() with pos ? %1\n", with_position));
if (with_position) { if (with_position) {
current.update (current.position, 0, current.speed); current.update (current.position, 0, 0);
_current_delta = 0; _current_delta = 0;
} else { } else {
current.reset (); current.reset ();