Logical error

This commit is contained in:
Trisuborn 2021-01-21 06:37:42 +08:00
parent 3bf767dfe1
commit 68e5c6f511
1 changed files with 1 additions and 1 deletions

View File

@ -314,7 +314,7 @@ static rt_err_t drv_pwm_control(struct rt_device_pwm *device, int cmd, void *arg
case PWM_CMD_ENABLE:
return drv_pwm_enable(htim, configuration, RT_TRUE);
case PWMN_CMD_DISABLE:
configuration->complementary = RT_FALSE;
configuration->complementary = RT_TRUE;
case PWM_CMD_DISABLE:
return drv_pwm_enable(htim, configuration, RT_FALSE);
case PWM_CMD_SET: