Skip to content

Commit 7bbdb4e

Browse files
committed
feat(ledc): Remove commented code
1 parent 297f132 commit 7bbdb4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-ledc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ static bool ledcDetachBus(void *bus) {
7777
}
7878

7979
bool ledcAttachChannel(uint8_t pin, uint32_t freq, uint8_t resolution, uint8_t channel) {
80-
if (channel >= LEDC_CHANNELS) { //|| ledc_handle.used_channels & (1UL << channel)) {
80+
if (channel >= LEDC_CHANNELS) {
8181
log_e("Channel %u is not available (maximum %u)!", channel, LEDC_CHANNELS);
8282
return false;
8383
}

0 commit comments

Comments
 (0)