fix(led): blink AP on VFD like Conn/PIN for provisioning visibility
This commit is contained in:
@@ -223,7 +223,14 @@ class Display {
|
|||||||
showAP() {
|
showAP() {
|
||||||
this._stopBlink();
|
this._stopBlink();
|
||||||
this._pipeTitle('AP ', '#m3AP ');
|
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() {
|
showConn() {
|
||||||
|
|||||||
Reference in New Issue
Block a user