diff --git a/project/p10-ANO/application/main.c b/project/p10-ANO/application/main.c index d301b88..7ba06af 100644 --- a/project/p10-ANO/application/main.c +++ b/project/p10-ANO/application/main.c @@ -30,7 +30,7 @@ static void USART_Config(void); int main(void) { delayinit(); -#ifdef ndebug +#ifndef ndebug motor_pwm_init(); motor_pwm_1 = motor_pwm_2 = motor_pwm_3 = motor_pwm_4 = motor_pwm_max; delay(2000); @@ -39,6 +39,15 @@ int main(void) motor_pwm_1 = motor_pwm_2 = motor_pwm_3 = motor_pwm_min; delay(5000); RCV_IC_init(); +#else + delay(4000); + motor_pwm_init(); + motor_pwm_1 = motor_pwm_2 = motor_pwm_3 = motor_pwm_4 = motor_pwm_min; + delay(4000); + motor_pwm_init(); + motor_pwm_1 = motor_pwm_2 = motor_pwm_3 = motor_pwm_4 = motor_pwm_min; + delay(4000); + RCV_IC_init(); #endif while (mpu_dmp_init());