chore: 默认间隔改为10s,超时改为5s

This commit is contained in:
wangfq
2026-06-04 09:56:09 +08:00
parent 79ec89b3a9
commit 59ddbe8d90
5 changed files with 4 additions and 4 deletions

View File

@@ -14,8 +14,8 @@ let timeoutTimer = null; // 超时定时器
let timeoutAt = 0; // 超时时刻 (Date.now() + timeoutMs) let timeoutAt = 0; // 超时时刻 (Date.now() + timeoutMs)
let lastDoneCount = 0; // 上一轮 done 数,检测新响应 let lastDoneCount = 0; // 上一轮 done 数,检测新响应
let cmdSentAt = 0; // 最近一次发送 0xB0 时间 let cmdSentAt = 0; // 最近一次发送 0xB0 时间
let intervalMs = 3000; // 默认 3s let intervalMs = 10000; // 默认 10s
let timeoutMs = 10000; // 默认 10s let timeoutMs = 5000; // 默认 5s
// ─── 手动指令 ───────────────────────────────── // ─── 手动指令 ─────────────────────────────────

View File

@@ -28,11 +28,11 @@
</label> </label>
<label style="margin-left:16px;"> <label style="margin-left:16px;">
间隔时间(秒) 间隔时间(秒)
<input type="number" id="interval-sec" value="3" min="0" max="300" style="width:60px;"> <input type="number" id="interval-sec" value="10" min="0" max="300" style="width:60px;">
</label> </label>
<label style="margin-left:16px;"> <label style="margin-left:16px;">
超时时间(秒) 超时时间(秒)
<input type="number" id="timeout-sec" value="10" min="1" max="600" style="width:60px;"> <input type="number" id="timeout-sec" value="5" min="1" max="600" style="width:60px;">
</label> </label>
<button id="btn-auto" class="btn-start" onclick="toggleAuto()">开始</button> <button id="btn-auto" class="btn-start" onclick="toggleAuto()">开始</button>
<div class="progress-container"> <div class="progress-container">