fix:档位串口优化
This commit is contained in:
parent
6154af25e1
commit
508c3f3954
@ -435,7 +435,8 @@ const devPath = "/dev/ttyS3"
|
|||||||
function openChuankouFn(callback) {
|
function openChuankouFn(callback) {
|
||||||
console.log('SerialOpen in indexservice, path=' + devPath)
|
console.log('SerialOpen in indexservice, path=' + devPath)
|
||||||
|
|
||||||
//TODO 自动挡车不读取串口
|
//自动挡车不读取串口
|
||||||
|
if(globalThis.carInfo && globalThis.carInfo.kscx == 'C1'){
|
||||||
testNapi.SerialOpenAsync(devPath, (fd) => {
|
testNapi.SerialOpenAsync(devPath, (fd) => {
|
||||||
globalThis.fd = fd;
|
globalThis.fd = fd;
|
||||||
globalThis.num = 0
|
globalThis.num = 0
|
||||||
@ -444,6 +445,7 @@ function openChuankouFn(callback) {
|
|||||||
callback()
|
callback()
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getChuankouFnMsg() {
|
function getChuankouFnMsg() {
|
||||||
|
|||||||
@ -677,6 +677,11 @@ struct Index {
|
|||||||
}, 1000)
|
}, 1000)
|
||||||
this.createAlbum()
|
this.createAlbum()
|
||||||
|
|
||||||
|
getSyncData('ES_CARINFO').then(result => {
|
||||||
|
const carInfo = result[0] || {};
|
||||||
|
globalThis.carInfo.kscx = carInfo.kscx
|
||||||
|
})
|
||||||
|
|
||||||
// clearInterval(globalThis.demo)
|
// clearInterval(globalThis.demo)
|
||||||
// globalThis.demo= setInterval(()=>{
|
// globalThis.demo= setInterval(()=>{
|
||||||
// const str= {"carId":"1062","examinationRoomId":"2","videoVersion":"1.0","judgeVersion":"2023.09.30.1","shellVersion":"2023.12.13.01","host":"http://172.37.55.191:8082"}
|
// const str= {"carId":"1062","examinationRoomId":"2","videoVersion":"1.0","judgeVersion":"2023.09.30.1","shellVersion":"2023.12.13.01","host":"http://172.37.55.191:8082"}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user