IECTOOLTest1/Fan_Ctrl.c
// call void LedON_Control_msec(void) function in 1msec
call void LedON_Control_msec(void) function in 1msec
call void LedON_Control_msec ( void ) function in 1msec
void Fan_Control_Sec(void)
{
        if(1==Fan_ON)
        {
            if(LED_Sec_Cnt++ == LedON_Duration_sec)
            {
                FAN_CTRL_RC6_SetLow();
                Fan_ON=0;
                LED_Sec_Cnt=0;
            }
        }
}
void Fan_Control_Sec ( void ) { if ( 1 == Fan_ON ) { if ( LED_Sec_Cnt ++ == LedON_Duration_sec ) { FAN_CTRL_RC6_SetLow ( ) ; Fan_ON = 0 ; LED_Sec_Cnt = 0 ; } } }
call void LedON_Control_msec(void) function in 1msec
call void LedON_Control_msec ( void ) function in 1msec
//check if Enable