Commit b4ab2c66 authored by waterword's avatar waterword

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

parent b8f38739
...@@ -171,6 +171,8 @@ ...@@ -171,6 +171,8 @@
this.checkFlagBash2(this.pngCnt) this.checkFlagBash2(this.pngCnt)
this.pngCnt++ this.pngCnt++
if (this.pngCnt == this.colorBashPng.length) { if (this.pngCnt == this.colorBashPng.length) {
this.clearTimer()
this.resetUI();
//console.log("=====show id_yes successful!") //console.log("=====show id_yes successful!")
} }
} }
......
...@@ -102,20 +102,25 @@ function doOtg(fd) { ...@@ -102,20 +102,25 @@ function doOtg(fd) {
} }
function doLcd(fd) { function doLcd(fd) {
if (doLcd.cntLcd == undefined) { // if (doLcd.cntLcd == undefined) {
doLcd.cntLcd = 0; // doLcd.cntLcd = 0;
} // }
doLcd.cntLcd += 1; // doLcd.cntLcd += 1;
console.log("doLcd " + doLcd.cntLcd) // console.log("doLcd " + doLcd.cntLcd)
if (doLcd.cntLcd > 1) { // if (doLcd.cntLcd > 1) {
autoUtil.ledTimerOut(); // autoUtil.ledTimerOut();
send(fd, '+OK'); // send(fd, '+OK');
doLcd.cntLcd = 0; // doLcd.cntLcd = 0;
} else { // } else {
// autoUtil.setAutoModeUI("INIT"); // // autoUtil.setAutoModeUI("INIT");
autoUtil.initUI(); // autoUtil.initUI();
autoUtil.setAutoModeUI("LCD"); // 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