Skip to content

Commit

Permalink
Update machine_pwm.c
Browse files Browse the repository at this point in the history
  • Loading branch information
IhorNehrutsa committed Nov 6, 2024
1 parent 1f30f85 commit aaf7a22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ports/esp32/machine_pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,8 +385,8 @@ static void set_duty_u16(machine_pwm_obj_t *self, int duty) {
if (err != ESP_OK)
#endif
{
check_esp_err(ledc_set_duty(self->mode, self->channel, channel_duty));
check_esp_err(ledc_update_duty(self->mode, self->channel));
check_esp_err(ledc_set_duty(self->mode, self->channel, channel_duty));
check_esp_err(ledc_update_duty(self->mode, self->channel));
}

self->duty_x = UI_RES_16_BIT;
Expand Down

0 comments on commit aaf7a22

Please sign in to comment.