Skip to content
Merged
Prev Previous commit
Next Next commit
feat(ledc): Remove commented code
  • Loading branch information
P-R-O-C-H-Y committed Jul 15, 2024
commit 7bbdb4e582997861ef4d219782c6efce6486d204
2 changes: 1 addition & 1 deletion cores/esp32/esp32-hal-ledc.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static bool ledcDetachBus(void *bus) {
}

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