Skip to content

Commit

Permalink
Update ports/esp32/machine_pwm.c
Browse files Browse the repository at this point in the history
Co-authored-by: Angus Gratton <[email protected]>
Signed-off-by: Ihor Nehrutsa <[email protected]>
  • Loading branch information
IhorNehrutsa and projectgus authored Jan 17, 2025
1 parent c6fedef commit 9166398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/esp32/machine_pwm.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ to view __FUNCTION__, __LINE__, __FILE__ in exception
// 10-bit user interface resolution compatible with esp8266 PWM.duty()
#define UI_RES_10_BIT (10)
// Maximum duty value on 10-bit resolution
#define UI10_DUTY ((1UL << UI_RES_10_BIT) - 1)
#define UI10_DUTY ((1U << UI_RES_10_BIT) - 1)

// 16-bit user interface resolution used in PWM.duty_u16()
#define UI_RES_16_BIT (16)
Expand Down

0 comments on commit 9166398

Please sign in to comment.