|
@@ -525,7 +525,7 @@ void appLoadConfig(void)
|
|
|
crcCheck = OsaCalcCrcValue((UINT8 *)pReadAppConfig, sizeof(AppNVMData));
|
|
|
readtimes = 0;
|
|
|
//while (readtimes<=5 && crcCheck != AppConfigHr.checkSum)
|
|
|
- while (readtimes<=5 && crcCheck != AppConfigHr.checkSum)
|
|
|
+ while (readtimes<=5 && readCount != 1)
|
|
|
{
|
|
|
readtimes++;
|
|
|
readCount = OsaFread(pReadAppConfig, AppConfigHr.fileBodySize, 1, fp);
|