fix mistaken "do not roll" conclusion in TransportFSM::compute_should_roll()
This commit is contained in:
parent
620ab66e75
commit
a439d8bbe4
@ -418,7 +418,10 @@ TransportFSM::compute_should_roll (LocateTransportDisposition ltd) const
|
|||||||
case MustStop:
|
case MustStop:
|
||||||
return false;
|
return false;
|
||||||
case RollIfAppropriate:
|
case RollIfAppropriate:
|
||||||
if (rolling()) {
|
/* by the time we call this, if we were rolling before the
|
||||||
|
locate, we've already transitioned into DeclickToLocate
|
||||||
|
*/
|
||||||
|
if (_motion_state == DeclickToLocate) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return api->should_roll_after_locate ();
|
return api->should_roll_after_locate ();
|
||||||
|
Loading…
Reference in New Issue
Block a user