Fix update go ahead

This commit is contained in:
Victor Shcherb 2015-09-05 11:20:25 +02:00
parent a7913c26d7
commit 2d31923260

View file

@ -436,7 +436,7 @@ public class VoiceRouter {
if (currentStatus == STATUS_UNKNOWN) {
// Tell goAhead distance after (1) route calculation if no other prompt is due, or (2) after a turn if next turn is more than PREPARE_LONG_DISTANCE away
//if (!isDistanceLess(speed, dist, TURN_IN_DISTANCE * 1.3, 0f)) {
if (playGoAheadDist = -1 || !isDistanceLess(speed, dist, PREPARE_LONG_DISTANCE + 300, 0f)) {
if (playGoAheadDist == -1 || !isDistanceLess(speed, dist, PREPARE_LONG_DISTANCE + 300, 0f)) {
playGoAheadDist = dist - 80;
}
// Put voice router in appropriate status