Skip to content

Commit bb0d406

Browse files
committed
Clang-format PWM fix
1 parent 486422c commit bb0d406

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ledc/ws_ledc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ bool ws_ledc::analogWrite(uint8_t pin, int value) {
5454

5555
// Calculate duty cycle for the `value` passed in
5656
// (assumes 12-bit resolution, 2^12)
57-
//uint32_t dutyCycle = (4095 / 255) * min(value, 255);
58-
uint32_t dutyCycle =(uint32_t)(((double)4095 / 255.0) * min((uint32_t)value, (uint32_t)255));
57+
uint32_t dutyCycle =
58+
(uint32_t)(((double)4095 / 255.0) * min((uint32_t)value, (uint32_t)255));
5959

6060
// Call duty cycle write
6161
return setDuty(pin, dutyCycle);

0 commit comments

Comments
 (0)