Browse Source

修改打印;

lch 8 months ago
parent
commit
ce7fe8e98a
1 changed files with 5 additions and 5 deletions
  1. 5 5
      dtu/dtu_main_t536/app/protect.c

+ 5 - 5
dtu/dtu_main_t536/app/protect.c

@@ -188,7 +188,7 @@ void quit_drive(void)
         if (!parBuf)
         {
             rt_free(parBuf);
-            rt_printf("\r\n退出不停电传动功能软压板时分配缓冲区出错!\r\n");
+            dp_err_nt_rt("\r\n退出不停电传动功能软压板时分配缓冲区出错!\r\n");
             return;
         }
 
@@ -663,7 +663,7 @@ int protect_amp_lx_js(int sw)
     if (m2_max == 0)
     {
         // 理论上,有采样通道的最大值相不可能不存在
-        rt_printf("protect_amp_lx_js:m2_max == 0.\r\n");
+        dp_err_nt_rt("protect_amp_lx_js:m2_max == 0.\r\n");
         return 0;
     }
 
@@ -891,7 +891,7 @@ static int _protect_amp_qd(u32 dStep)
         {
             rt_stat_in(&pR->fz_stat, ustimer_get_duration(pR->us_fz) / USTIMER_US);
         }
-        rt_printf("开关%d辐值启动(bFZJS=%d)\r\n", sw, bFZJS);
+        dp_info_nt_rt("开关%d辐值启动(bFZJS = %d)\r\n", sw, bFZJS);
     }
     return 0;
 }
@@ -1414,7 +1414,7 @@ static int _protect_sw_tz(u32 dStep)
                 pR->uBHDZ.bFlag.bTZOut = 1;
             }
             tRunPara.sysData.wSwTzCount++;
-            rt_printf("开关%d保护跳闸\r\n", sw);
+            dp_info_nt_rt("开关%d保护跳闸\r\n", sw);
         }
     }
     else
@@ -2054,7 +2054,7 @@ static int _protect_rmt_sw(u32 dStep)
     {
         SignalReset(0, false);
         g_rmt_op.cmd = CMD_NILL;
-        rt_printf("遥控器复归信号产生\r\n");
+        dp_info_nt_rt("遥控器复归信号产生\r\n");
     }
 
     return 0;