Merge branch 'S51EV_ECU' of http://ikuai.hua-hua.cn:23080/huahua/can_bootloader into S51EV_ECU

This commit is contained in:
sunbeam 2023-03-09 11:24:14 +08:00
commit 34b4afa2c2
2 changed files with 5 additions and 2 deletions

View File

@ -43,7 +43,9 @@ timer_bootcount.onTimer = function(){//boot时间定时器100ms间隔
}
Display = function(str){//显示日志
mainForm.edit.print(tostring(time()) + " " + str);
var nowtime = time();
nowtime.format="%H:%M:%S";
mainForm.edit.print(tostring(nowtime) + " " + str);
}
//遍历目录
import console;

View File

@ -57,7 +57,8 @@ FuncDiag22Pro = function(data){
case 0x1701 {
var 水平 = (data[3]<<8) + (data[4]);
var 靠背 = (data[5]<<8) + (data[6]);
FuncDisplay("水平电机当前位置霍尔数: " + 水平 + "靠背电机当前位置数" + 靠背);
FuncDisplay("水平当前位置: " ++ (水平-0x8000) );
FuncDisplay("靠背当前位置" ++ (靠背 - 0x8000) );
}
case 0x1702 {
if(#data < 10){