File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ void ETHClass::_onEthEvent(int32_t event_id, void *event_data) {
118
118
}
119
119
120
120
ETHClass::ETHClass (uint8_t eth_index)
121
- : _eth_handle(NULL ), _eth_index(eth_index), _phy_type(ETH_PHY_MAX)
121
+ : _eth_handle(NULL ), _eth_index(eth_index), _phy_type(ETH_PHY_MAX), _glue_handle( NULL )
122
122
#if ETH_SPI_SUPPORTS_CUSTOM
123
123
,
124
124
_spi (NULL )
@@ -729,7 +729,7 @@ bool ETHClass::beginSPI(
729
729
log_e (" event_handler_instance_register for ETH_EVENT Failed!" );
730
730
return false ;
731
731
}
732
-
732
+
733
733
/* attach to receive events */
734
734
initNetif ((Network_Interface_ID)(ESP_NETIF_ID_ETH + _eth_index));
735
735
@@ -833,6 +833,7 @@ void ETHClass::end(void) {
833
833
log_e (" Failed to del_netif_glue Ethernet" );
834
834
return ;
835
835
}
836
+ _glue_handle = NULL ;
836
837
}
837
838
// uninstall driver
838
839
if (esp_eth_driver_uninstall (_eth_handle) != ESP_OK) {
You can’t perform that action at this time.
0 commit comments