Commit b4ab2c66 authored by waterword's avatar waterword

fix:测试完一轮LCD颜色和图片切换则关闭

parent b8f38739
......@@ -171,6 +171,8 @@
this.checkFlagBash2(this.pngCnt)
this.pngCnt++
if (this.pngCnt == this.colorBashPng.length) {
this.clearTimer()
this.resetUI();
//console.log("=====show id_yes successful!")
}
}
......
......@@ -102,20 +102,25 @@ function doOtg(fd) {
}
function doLcd(fd) {
if (doLcd.cntLcd == undefined) {
doLcd.cntLcd = 0;
}
doLcd.cntLcd += 1;
console.log("doLcd " + doLcd.cntLcd)
if (doLcd.cntLcd > 1) {
autoUtil.ledTimerOut();
send(fd, '+OK');
doLcd.cntLcd = 0;
} else {
// autoUtil.setAutoModeUI("INIT");
autoUtil.initUI();
autoUtil.setAutoModeUI("LCD");
}
// if (doLcd.cntLcd == undefined) {
// doLcd.cntLcd = 0;
// }
// doLcd.cntLcd += 1;
// console.log("doLcd " + doLcd.cntLcd)
// if (doLcd.cntLcd > 1) {
// autoUtil.ledTimerOut();
// send(fd, '+OK');
// doLcd.cntLcd = 0;
// } else {
// // autoUtil.setAutoModeUI("INIT");
// autoUtil.initUI();
// autoUtil.setAutoModeUI("LCD");
// }
autoUtil.initUI();
autoUtil.setAutoModeUI("LCD");
// autoUtil.ledTimerOut();
send(fd, '+OK');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment