fix(led): use log.info for LED state, show write errors and hasInternet failures

Made-with: Cursor
This commit is contained in:
stswangzhiping
2026-03-18 20:07:31 +08:00
parent 875e69a454
commit b95e909d48
2 changed files with 7 additions and 5 deletions

View File

@@ -71,6 +71,8 @@ class ProvisionManager extends EventEmitter {
if (hasInternet()) {
led.on(); // 网络畅通 → 常亮
this.emit('network-ready');
} else {
log.warn('provision', 'WiFi 已连接但 hasInternet() 返回 falseLED 保持熄灭');
}
}