V2.11 读流水号时如果目标值为0则不报错

This commit is contained in:
ranchuan
2024-01-03 16:30:03 +08:00
parent a51722b54a
commit b4d3b5bc7d
7 changed files with 10 additions and 9 deletions

View File

@@ -1324,7 +1324,7 @@ void JQ_Test_ReadSN(void)
}
// 流水号域如果不为要设置的流水号则失败
temp.data>>=5;
if((temp.data)!=sn){
if((sn!=0)&&(temp.data!=sn)){
uc_rtv=3;
}