fix(vfd): use isApMode() instead of hasInternet() to decide AP vs Err0

Made-with: Cursor
This commit is contained in:
stswangzhiping
2026-03-19 23:45:16 +08:00
parent 8f158eeeb2
commit c13ed3ba6d
2 changed files with 7 additions and 3 deletions

View File

@@ -31,6 +31,9 @@ class ProvisionManager extends EventEmitter {
this._monitorTimer = null;
}
/** 是否正处于 AP 模式WiFi 热点广播中) */
isApMode() { return this._state === 'ap'; }
async start() {
led.off(); // 初始状态:灭灯