fix(led): blink AP on VFD like Conn/PIN for provisioning visibility

This commit is contained in:
stswangzhiping
2026-03-29 13:49:48 +08:00
parent 23afd24f4d
commit fcee9ca709

View File

@@ -223,7 +223,14 @@ class Display {
showAP() {
this._stopBlink();
this._pipeTitle('AP ', '#m3AP ');
log.info('display', '显示屏 → AP');
log.info('display', '显示屏 → AP(闪烁)');
let visible = true;
const blink = () => {
visible = !visible;
this._pipeTitle(visible ? 'AP ' : ' ', visible ? '#m3AP ' : '#c1');
this._blinkTimer = setTimeout(blink, visible ? 1000 : 500);
};
this._blinkTimer = setTimeout(blink, 1000);
}
showConn() {