V2.11 读流水号时如果目标值为0则不报错
This commit is contained in:
@@ -1045,7 +1045,7 @@ void EW_Test_ReadSN(void)
|
||||
}
|
||||
// 流水号域如果不为要设置的流水号则失败
|
||||
temp.data>>=5;
|
||||
if((temp.data)!=sn){
|
||||
if((sn!=0)&&(temp.data!=sn)){
|
||||
uc_rtv=3;
|
||||
}
|
||||
end:
|
||||
|
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user