Fix API Change (#777)

Used to state just use 0x100, but this is incorrect on some platforms.  Recommened now to just use SIG_GPIO_OUT_IDX.
This commit is contained in:
Michael Miller
2024-03-07 09:02:50 -08:00
committed by GitHub
parent 4a11e1c7ec
commit f700889c5c
3 changed files with 3 additions and 3 deletions

View File

@@ -171,7 +171,7 @@ public:
i2sDeinit(_bus.I2sBusNumber); i2sDeinit(_bus.I2sBusNumber);
gpio_matrix_out(_pin, 0x100, false, false); gpio_matrix_out(_pin, SIG_GPIO_OUT_IDX, false, false);
pinMode(_pin, INPUT); pinMode(_pin, INPUT);
free(_data); free(_data);

View File

@@ -453,7 +453,7 @@ public:
} }
// disconnect muxed pin // disconnect muxed pin
gpio_matrix_out(pin, 0x100, false, false); gpio_matrix_out(pin, SIG_GPIO_OUT_IDX, false, false);
pinMode(pin, INPUT); pinMode(pin, INPUT);
_muxId = s_context.MuxMap.InvalidMuxId; _muxId = s_context.MuxMap.InvalidMuxId;

View File

@@ -556,7 +556,7 @@ public:
ESP_ERROR_CHECK(rmt_driver_uninstall(_channel.RmtChannelNumber)); ESP_ERROR_CHECK(rmt_driver_uninstall(_channel.RmtChannelNumber));
gpio_matrix_out(_pin, 0x100, false, false); gpio_matrix_out(_pin, SIG_GPIO_OUT_IDX, false, false);
pinMode(_pin, INPUT); pinMode(_pin, INPUT);
free(_dataEditing); free(_dataEditing);