mirror of
https://github.com/PaulStoffregen/OneWire.git
synced 2026-07-27 19:57:07 +00:00
Merge pull request #146 from jflasch2/master
Update OneWire_direct_gpio.h Comment out >= 33 pin check
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user