Skip to content

Commit

Permalink
Update esp32-hal-rmt.c (#8216)
Browse files Browse the repository at this point in the history
Optimizing Peripheral Manager Test
  • Loading branch information
SuGlider authored May 31, 2023
1 parent 0320f4d commit 66c88fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cores/esp32/esp32-hal-rmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ bool rmtInit(int pin, rmt_ch_dir_t channel_direction, rmt_reserve_memsize_t mem_
}

// Try to dettach any (Tx|Rx|Whatever) previous bus or just keep it as not attached
if (perimanGetPinBusType(pin) != ESP32_BUS_TYPE_INIT && !perimanSetPinBus(pin, ESP32_BUS_TYPE_INIT, NULL)) {
if (!perimanSetPinBus(pin, ESP32_BUS_TYPE_INIT, NULL)) {
log_w("GPIO %d - Can't detach previous peripheral.", pin);
return false;
}
Expand Down

0 comments on commit 66c88fa

Please sign in to comment.