make ETH work

This commit is contained in:
me-no-dev
2020-01-27 16:22:07 +02:00
parent ee535efb5c
commit 92db9730e0
3 changed files with 161 additions and 20 deletions

View File

@ -123,6 +123,12 @@ void tcpipInit(){
static bool initialized = false;
if(!initialized && _start_network_event_task()){
initialized = true;
#ifdef ESP_IDF_VERSION_MAJOR
uint8_t mac[8];
if(esp_efuse_mac_get_default(mac) == ESP_OK){
esp_base_mac_addr_set(mac);
}
#endif
tcpip_adapter_init();
}
}