Browse Source

版本号:2.0.0.9,在2.0.0.8的基础上,修改了电流方向。

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

+ 1 - 1
inc/app.h

@@ -44,7 +44,7 @@ extern "C" {
 #define	BLSWVERSION		0x01020000    //BootLoader版本号V1.2.0.0
 #define	DRVSWVERSION		0x01040000     //驱动层版本号V1.4.0.0
 //#define	APPSWVERSION		0x01020208     
-#define	APPSWVERSION		0x02000008
+#define	APPSWVERSION		0x02000009
 //--------------------------------------------------------------------------------
 
 #define APP_CONFIG_FILE_LATEST_VERSION 0

+ 2 - 2
src/TcpTask.c

@@ -315,13 +315,13 @@ static void TcpDataInfoAssembleSend()
         {
             Batt_current = Batt_current|0x7fff;
             Batt_current = Batt_current/10;
-            Batt_current = 0x2710 + Batt_current;
+            Batt_current = 0x2710 - Batt_current;
             Batt_current = Batt_current;
         }
         else
         {
             Batt_current = Batt_current/10;
-            Batt_current = 0x2710 - Batt_current;
+            Batt_current = 0x2710 + Batt_current;
             Batt_current = Batt_current;
         }
         BattToTcpInfo.battInfo.battI[0] = Batt_current>>8;