Browse Source

【3.1.0.36】TMS策略更改,强制清除DTC版本

CHENJIE-PC\QiXiang_CHENJIE 3 years ago
parent
commit
07f73a1bf4
2 changed files with 17 additions and 9 deletions
  1. 2 2
      inc/AppConfig.h
  2. 15 7
      src/EmbeddedCoder_src/TMS.c

+ 2 - 2
inc/AppConfig.h

@@ -2,7 +2,7 @@
  * @Author       : ChenJie
  * @Date         : 2021-10-14 09:27:15
  * @LastEditors  : ChenJie
- * @LastEditTime : 2021-11-05 14:53:56
+ * @LastEditTime : 2021-11-08 14:32:17
  * @Description  : App Config H file 配置文件,可以针对不同参数进行更改
  * @FilePath     : \PLAT\project\ec616_0h00\apps\qx_app\inc\AppConfig.h
  */
@@ -14,7 +14,7 @@
 #define DATA_MODULE_TYPE (1)           //1表示NB模块,2表示4G cat1
 #define EOLSTATE (0)                   //1表示下线检测跳过,使用默认值,0表示使用下线检测
 #define DEFAULT_SN "RLTEST00000000001" //默认上传的SN编码
-#define APPSWVERSION 0x03010023        //数据模块软件版本号
+#define APPSWVERSION 0x03010024        //数据模块软件版本号
 #define RELAYCONFIG 1                  //继电器配置
 #define TCP_ADD "iotp.fast-fun.cn"     //数据上传的地址
 #define TCP_PORT 8712                  //数据上传的端口

+ 15 - 7
src/EmbeddedCoder_src/TMS.c

@@ -1,3 +1,12 @@
+/*
+ * @Author       : ChenJie
+ * @Date         : 2021-11-08 10:44:13
+ * @Version      : V3.0
+ * @LastEditors  : ChenJie
+ * @LastEditTime : 2021-11-08 14:34:38
+ * @Description  : file content
+ * @FilePath     : \PLAT\project\ec616_0h00\apps\qx_app\src\EmbeddedCoder_src\TMS.c
+ */
 
 #include "TMS.h"
 
@@ -12,7 +21,7 @@ void TMS(void)
     static uint8_T TminLowNr;
     static uint8_T TminOverNr;
     static uint8_T TmaxOverNr;
-    
+
     //初始值
     if (FirstRun_TMS)
     {
@@ -21,7 +30,7 @@ void TMS(void)
         TminOverNr = 0;
         TmaxOverNr = 0;
     }
-    
+
     //
     if (sfmd_T_modTMin < tmsc_T_openThr)
     {
@@ -49,7 +58,7 @@ void TMS(void)
     {
         TmaxOverNr = 0;
     }
-    
+
     //================================温度判定 开关热管理状态===============================
     if (tmsd_st_heatAct == 0)
     {
@@ -65,13 +74,13 @@ void TMS(void)
             tmsd_st_heatAct = 0;
         }
     }
-    
+
     //因故障关闭热管理
     if (((sfmd_st_fltAct >> 4) & 0x01) == 1)
     {
         tmsd_st_heatAct = 0;
     }
-    
+
     //强制控制加热回路
     if (ihd_st_heatForceControl == 1)
     {
@@ -81,7 +90,6 @@ void TMS(void)
     {
         tmsd_st_heatAct = 0;
     }
-	printf("tmsd_st_heatAct:%d\n",tmsd_st_heatAct);
-    
+
     FirstRun_TMS = false;
 }