forked from SZV10X_Software/SZV103_FM33A0xxEV_SiZhu

jinlicong
2024-04-30 ee3c90168f81ce19529904d80f9c9de4fed23bb8
Function/FLOW_METER_DATA_COLLECT/rs485_read_data.c
@@ -176,15 +176,17 @@
void rs485ReadDataPro(void)
void rs485ReadDataPro(FUN_START_CTRL_PARA_T * sys_fun_run_ctrl_p)
{
   
   
   if(1)//?ÅжÏ485²É¼¯±êʶ
   if((sys_fun_run_ctrl_p->rs485_ctrl_flag.start_flag ==SET)&&(sys_fun_run_ctrl_p->valve_ctrl_flag.running_flag == RESET)&&(sys_fun_run_ctrl_p->wrc_ctrl_flag.running_flag == RESET))//?ÅжÏ485²É¼¯±êʶ
   {   
      sys_fun_run_ctrl_p->rs485_ctrl_flag.start_flag = RESET;
      if(rs485_com_ctrl_pata_g.status == RS485_COM_IDLE)
      {
         rs485_com_ctrl_pata_g.status = RS485_COM_PWR_ON;
         sys_fun_run_ctrl_p->rs485_ctrl_flag.running_flag = SET;
      }
   
   }
@@ -200,6 +202,8 @@
        default:;
    }
   
   if(rs485_com_ctrl_pata_g.status == RS485_COM_IDLE)
      sys_fun_run_ctrl_p->rs485_ctrl_flag.running_flag = RESET;
   
   
}