From 63046840e299232c7f6c7c290bf5825a1362c4ed Mon Sep 17 00:00:00 2001 From: Lev Dragunov Date: Wed, 23 Mar 2016 12:27:35 +0300 Subject: [PATCH] Route no following in same cases fix. --- routing/routing_session.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/routing/routing_session.cpp b/routing/routing_session.cpp index d8daecaf8e..4d239f4cdf 100644 --- a/routing/routing_session.cpp +++ b/routing/routing_session.cpp @@ -221,11 +221,6 @@ RoutingSession::State RoutingSession::OnLocationPositionChanged(GpsInfo const & ++m_moveAwayCounter; m_lastDistance = dist; } - else - { - m_moveAwayCounter = 0; - m_lastDistance = 0.0; - } if (m_moveAwayCounter > kOnRouteMissedCount) { @@ -407,6 +402,7 @@ void RoutingSession::MatchLocationToRoute(location::GpsInfo & location, bool RoutingSession::DisableFollowMode() { + LOG(LINFO, ("Routing disables a following mode. State: ", m_state)); if (m_state == RouteNotStarted || m_state == OnRoute) { m_state = RouteNoFollowing; @@ -418,6 +414,7 @@ bool RoutingSession::DisableFollowMode() bool RoutingSession::EnableFollowMode() { + LOG(LINFO, ("Routing enables a following mode. State: ", m_state)); if (m_state == RouteNotStarted || m_state == OnRoute) { m_state = OnRoute;