Browse Source

1.正式样件版本发布,版本号为2.0.0.0

CHENJIE-PC\QiXiang_CHENJIE 3 years ago
parent
commit
f56e09e852
2 changed files with 2 additions and 2 deletions
  1. 1 1
      inc/app.h
  2. 1 1
      src/MainTask.c

+ 1 - 1
inc/app.h

@@ -34,7 +34,7 @@ extern "C" {
 #define HWVERSION		    0x0102    //硬件主版本,现为V1.2板
 #define	BLSWVERSION		0x01020000    //BootLoader版本号V1.2.0.0
 #define	DRVSWVERSION		0x01030000     //驱动层版本号V1.3.0.0
-#define	APPSWVERSION		0x01020106      
+#define	APPSWVERSION		0x02000000      
 
 //--------------------------------------------------------------------------------
 

+ 1 - 1
src/MainTask.c

@@ -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);