forked from SZV10X_Software/SZV103_FM33A0xxEV_SiZhu

jinlicong
2024-05-09 d6ce00f6b68d3d1ecaf44c972909f311ac1d3bf8
Function/WirelessRemoteComm/wireless_remote_comm.c
@@ -90,11 +90,16 @@
void WirelessRemoteCommPro(void)
void WirelessRemoteCommPro(FUN_START_CTRL_PARA_T * sys_fun_run_ctrl_p)
{
   
   //?·Ç485²É¼¯¡¢·§¿ØÆÚ¼ä²ÅÄܽøÈëͨѶÁ÷³Ì
   //wrc_ctrl_para_g.wrc_state = WRC_OPEN_PWR;
   if((sys_fun_run_ctrl_p->wrc_ctrl_flag.start_flag ==SET)&&(sys_fun_run_ctrl_p->valve_ctrl_flag.running_flag == RESET)&&(sys_fun_run_ctrl_p->rs485_ctrl_flag.running_flag == RESET))//?ÅжÏ485²É¼¯±êʶ
   {
      sys_fun_run_ctrl_p->wrc_ctrl_flag.start_flag =RESET;
      if(wrc_ctrl_para_g.wrc_state == WRC_IDLE)
         wrc_ctrl_para_g.wrc_state = WRC_OPEN_PWR;
   }
   
   
   switch (wrc_ctrl_para_g.wrc_state){
@@ -108,5 +113,11 @@
        default:;
    }
   
   if(wrc_ctrl_para_g.wrc_state==WRC_IDLE)
      sys_fun_run_ctrl_p->wrc_ctrl_flag.running_flag = RESET;
   else
      sys_fun_run_ctrl_p->wrc_ctrl_flag.running_flag = SET;
}