tune: trigger stable approaching announcement at 45 seconds

This commit is contained in:
2026-08-02 19:29:26 +08:00
parent 22ea43c1c1
commit 73f0ba8e69
+3 -3
View File
@@ -2584,7 +2584,7 @@ function Main.loop()
end
end
if etaSeconds >= 0 and etaSeconds < 30 then
if etaSeconds >= 0 and etaSeconds <= 45 then
seenApproachKeys[announceKey] = true
local pending = State.pendingApproaching[announceKey]
if not pending then
@@ -2716,8 +2716,8 @@ function Main.loop()
end
end
-- 触发逻辑:当 ETA 已经明确小于30秒(包括15秒、现在等),且之前没有播报过
if etaSeconds >= 0 and etaSeconds < 30 then
-- 触发逻辑:当 ETA 已经明确不大于45秒,且之前没有播报过
if etaSeconds >= 0 and etaSeconds <= 45 then
seenApproachKeys[announceKey] = true
local pending = State.pendingApproaching[announceKey]
if not pending then