From 73f0ba8e69222563771a5e96d9a1f34f5982371f Mon Sep 17 00:00:00 2001 From: HenryDu8133 <813367384@qq.com> Date: Sun, 2 Aug 2026 19:29:26 +0800 Subject: [PATCH] tune: trigger stable approaching announcement at 45 seconds --- station_broadcast.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/station_broadcast.lua b/station_broadcast.lua index 11a7b49..789cf4e 100644 --- a/station_broadcast.lua +++ b/station_broadcast.lua @@ -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