test if this code prevents bug of duplicate first prompt
This commit is contained in:
parent
5107dce0f7
commit
763178ff5c
1 changed files with 8 additions and 8 deletions
|
@ -441,17 +441,17 @@ public class VoiceRouter {
|
||||||
if ((playGoAheadDist == -1) || (dist > PREPARE_LONG_DISTANCE)) {
|
if ((playGoAheadDist == -1) || (dist > PREPARE_LONG_DISTANCE)) {
|
||||||
playGoAheadDist = dist - 80;
|
playGoAheadDist = dist - 80;
|
||||||
}
|
}
|
||||||
// Put voice router in appropriate status
|
// Then adjust voice router status
|
||||||
//if (dist > PREPARE_LONG_DISTANCE + 300) {
|
if (dist > PREPARE_LONG_DISTANCE + 300) {
|
||||||
// say long distance message only for long distances > 3.5 km
|
// say long distance message only for long distances > 3.5 km
|
||||||
// nextStatusAfter(STATUS_UNKNOWN);
|
nextStatusAfter(STATUS_UNKNOWN);
|
||||||
//} else if (dist > PREPARE_DISTANCE + 300) {
|
} else if (dist > PREPARE_DISTANCE + 300) {
|
||||||
// say prepare message if it is far enough and don't say prepare long distance
|
// say prepare message if it is far enough and don't say prepare long distance
|
||||||
// nextStatusAfter(STATUS_LONG_PREPARE);
|
nextStatusAfter(STATUS_LONG_PREPARE);
|
||||||
//} else {
|
} else {
|
||||||
// don't say even prepare message
|
// don't say even prepare message
|
||||||
// nextStatusAfter(STATUS_PREPARE);
|
nextStatusAfter(STATUS_PREPARE);
|
||||||
//}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NextDirectionInfo nextNextInfo = router.getNextRouteDirectionInfoAfter(nextInfo, new NextDirectionInfo(), !repeat);
|
NextDirectionInfo nextNextInfo = router.getNextRouteDirectionInfoAfter(nextInfo, new NextDirectionInfo(), !repeat);
|
||||||
|
|
Loading…
Reference in a new issue