small correction

This commit is contained in:
sonora 2016-07-03 18:32:00 +02:00
parent 40dd00aea6
commit 0f0c18ac44

View file

@ -186,7 +186,7 @@ public class VoiceRouter {
btScoDelayDistance = currentSpeed * (double) AbstractPrologCommandPlayer.BT_SCO_DELAY / 1000;
}
if((dist < etalon + btScoDelayDistance) || ((dist / currentSpeed) < ((etalon + btScoDelayDistance) / defSpeed))){
if((dist < etalon + btScoDelayDistance) || ((dist - btScoDelayDistance) / currentSpeed) < (etalon / defSpeed))){
return true;
}
return false;