fix speed_alarm prompt
This commit is contained in:
parent
d79687f366
commit
dc96d250a3
1 changed files with 2 additions and 4 deletions
|
@ -214,7 +214,7 @@ public class VoiceRouter {
|
|||
return;
|
||||
}
|
||||
long ms = System.currentTimeMillis();
|
||||
if (alarm.getTime() == AlarmInfo.SPEED_LIMIT) {
|
||||
if (alarm.getType() == AlarmInfo.SPEED_LIMIT) {
|
||||
|
||||
if (waitAnnouncedSpeedLimit == 0) {
|
||||
// wait 10 seconds before announcement
|
||||
|
@ -234,8 +234,7 @@ public class VoiceRouter {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
} else if (alarm.getType() == AlarmInfo.SPEED_CAMERA) {
|
||||
if (router.getSettings().SPEAK_SPEED_CAMERA.get() && ms - lastAnnouncedSpeedCamera > 100 * 1000) {
|
||||
CommandBuilder p = getNewCommandPlayerToPlay();
|
||||
|
@ -253,7 +252,6 @@ public class VoiceRouter {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue