Skip to content

Commit

Permalink
Merge pull request #146 from jflasch2/master
Browse files Browse the repository at this point in the history
Update OneWire_direct_gpio.h  Comment out >= 33 pin check
  • Loading branch information
PaulStoffregen authored Sep 4, 2024
2 parents 72249e2 + fee1b44 commit dae0fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/OneWire_direct_gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ void directModeOutput(IO_REG_TYPE pin)
#if CONFIG_IDF_TARGET_ESP32C3
GPIO.enable_w1ts.val = ((uint32_t)1 << (pin));
#else
if ( digitalPinIsValid(pin) && pin <= 33 ) // pins above 33 can be only inputs
if ( digitalPinIsValid(pin) /* && pin <= 33 */ ) // Use Any In/Out pins
{
#if ESP_IDF_VERSION_MAJOR < 4 // IDF 3.x ESP32/PICO-D4
uint32_t rtc_reg(rtc_gpio_desc[pin].reg);
Expand Down

0 comments on commit dae0fca

Please sign in to comment.