ew写延时验证成功,ej写流水号验证成功

解决上位机协议crc错误依然执行命令的bug
    注意:小板方案中芯片类型与主板不同时,使用槽任务可能造成各种异常问题(死机,死循环,不返回数据等)
This commit is contained in:
ranchuan
2023-12-26 18:08:59 +08:00
parent a6ba0a1818
commit d22fdc1ccb
9 changed files with 73 additions and 10 deletions

View File

@@ -318,7 +318,7 @@ static int EW_TurnToBoot1(ew_updata_def *e)
delay_ms(5);
EW_EnWriteMTP(0,1);
delay_ms(5);
EW_RunBootLoader(0,1);
EW_RunBootLoader(0,0);
delay_ms(500);
if(EW_bootCharg()==0)
return 0;
@@ -340,7 +340,7 @@ static int EW_TurnToBoot2(ew_updata_def *e)
int EW_TurnToBoot(ew_updata_def *e)
{
typedef int (*turnfun)(ew_updata_def *e);
turnfun func_table[]={EW_TurnToBoot2,EW_TurnToBoot2};
turnfun func_table[]={EW_TurnToBoot1,EW_TurnToBoot2};
int ret=0;
for(int i=0;i<2;i++){
if(e->state!=1){