Skip to content

Commit a593206

Browse files
authored
Fixing interrupts in LEDC (espressif#6160)
Fixes: espressif#6140
1 parent a45790b commit a593206

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: cores/esp32/esp32-hal-ledc.c

+2
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ void ledcAttachPin(uint8_t pin, uint8_t chan)
168168
.hpoint = 0
169169
};
170170
ledc_channel_config(&ledc_channel);
171+
172+
pinMode(pin,OUTPUT);
171173
}
172174

173175
void ledcDetachPin(uint8_t pin)

0 commit comments

Comments
 (0)