chore(station_broadcast): 升级版本至v1.0.49并调整ETA触发阈值
调整列车接近播报的ETA更新阈值,从3秒改为15秒以减少频繁触发
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
-- 1. Configuration & Constants
|
-- 1. Configuration & Constants
|
||||||
local APP_VERSION_TEXT = "v1.0.48"
|
local APP_VERSION_TEXT = "v1.0.49"
|
||||||
|
|
||||||
local CONFIG = {
|
local CONFIG = {
|
||||||
CLOUD_URL = "ws://stabadmin.fse-media.group",
|
CLOUD_URL = "ws://stabadmin.fse-media.group",
|
||||||
@@ -2705,7 +2705,7 @@ function Main.loop()
|
|||||||
if not pending then
|
if not pending then
|
||||||
State.pendingApproaching[announceKey] = { since = now, lastEta = etaSeconds }
|
State.pendingApproaching[announceKey] = { since = now, lastEta = etaSeconds }
|
||||||
else
|
else
|
||||||
if etaSeconds > (tonumber(pending.lastEta) or etaSeconds) + 3 then
|
if etaSeconds > (tonumber(pending.lastEta) or etaSeconds) + 15 then
|
||||||
pending.since = now
|
pending.since = now
|
||||||
end
|
end
|
||||||
pending.lastEta = etaSeconds
|
pending.lastEta = etaSeconds
|
||||||
|
|||||||
Reference in New Issue
Block a user