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:
parent
8e868fc743
commit
79a823d2cb
@ -640,7 +640,7 @@ TransportFSM::enqueue (Event* ev)
|
|||||||
int
|
int
|
||||||
TransportFSM::transport_speed() const
|
TransportFSM::transport_speed() const
|
||||||
{
|
{
|
||||||
if (_motion_state == Stopped || _direction_state == Reversing) {
|
if (_motion_state != Rolling || _direction_state == Reversing) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user