parameter "gpio" was set but never used

2019-08-18 20:39发布

1.#define PD0 PDout(0)


2.case 122:relay_control(500,PD0);break;


3.void relay_control(u16 delay,char gpio)
{
     
     gpio=1;
     delay_ms(delay);
     gpio=0;
     delay_ms(delay);

   
}

USER xt.c(22): warning:  #550-D: parameter "gpio" was set but never used
  void relay_control(u16 delay,char gpio)

红 {MOD}部分该怎么改?求大神指导

友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。