13
0

use correct condition in TransportFSM::transport_speed()

Any state that it not Rolling should count as stopped for this purpose
This commit is contained in:
Paul Davis 2021-04-28 22:36:23 -06:00
parent 8e868fc743
commit 79a823d2cb

View File

@ -640,7 +640,7 @@ TransportFSM::enqueue (Event* ev)
int
TransportFSM::transport_speed() const
{
if (_motion_state == Stopped || _direction_state == Reversing) {
if (_motion_state != Rolling || _direction_state == Reversing) {
return 0;
}