13
0

reset "current" in LTC transport master when necessary

This commit is contained in:
Paul Davis 2019-02-04 11:23:56 -07:00
parent 5b12cc9bad
commit 90e5220fa6

View File

@ -196,10 +196,12 @@ LTC_TransportMaster::resync_latency()
void
LTC_TransportMaster::reset (bool with_position)
{
DEBUG_TRACE (DEBUG::LTC, "LTC reset()\n");
DEBUG_TRACE (DEBUG::LTC, string_compose ("LTC reset() with pos ? %1\n", with_position));
if (with_position) {
current.update (current.position, 0, current.speed);
_current_delta = 0;
} else {
current.reset ();
}
transport_direction = 0;
sync_lock_broken = false;