We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a5ba7e commit 4387551Copy full SHA for 4387551
libraries/Ethernet/src/ETH.cpp
@@ -118,7 +118,7 @@ void ETHClass::_onEthEvent(int32_t event_id, void *event_data) {
118
}
119
120
ETHClass::ETHClass(uint8_t eth_index)
121
- : _eth_handle(NULL), _eth_index(eth_index), _phy_type(ETH_PHY_MAX)
+ : _eth_handle(NULL), _eth_index(eth_index), _phy_type(ETH_PHY_MAX), _glue_handle(NULL)
122
#if ETH_SPI_SUPPORTS_CUSTOM
123
,
124
_spi(NULL)
@@ -832,6 +832,7 @@ void ETHClass::end(void) {
832
log_e("Failed to del_netif_glue Ethernet");
833
return;
834
835
+ _glue_handle = NULL;
836
837
//uninstall driver
838
if (esp_eth_driver_uninstall(_eth_handle) != ESP_OK) {
0 commit comments