Skip to content

Commit 3c1ed99

Browse files
authored
orig. from master
revert #55
1 parent 8dd0fe0 commit 3c1ed99

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)