Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
024ba740
Unverified
Commit
024ba740
authored
Feb 15, 2023
by
s-hadinger
Committed by
GitHub
Feb 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Register Ethernet `netif` in WiFiGeneric to (#7632)
Co-authored-by:
Me No Dev
<
me-no-dev@users.noreply.github.com
>
parent
211ba18f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
libraries/Ethernet/src/ETH.cpp
libraries/Ethernet/src/ETH.cpp
+4
-0
No files found.
libraries/Ethernet/src/ETH.cpp
View file @
024ba740
...
...
@@ -41,6 +41,7 @@
#include "lwip/dns.h"
extern
void
tcpipInit
();
extern
void
add_esp_interface_netif
(
esp_interface_t
interface
,
esp_netif_t
*
esp_netif
);
/* from WiFiGeneric */
#if ESP_IDF_VERSION_MAJOR > 3
...
...
@@ -327,6 +328,9 @@ bool ETHClass::begin(uint8_t phy_addr, int power, int mdc, int mdio, eth_phy_typ
return
false
;
}
/* attach to WiFiGeneric to receive events */
add_esp_interface_netif
(
ESP_IF_ETH
,
eth_netif
);
if
(
esp_eth_start
(
eth_handle
)
!=
ESP_OK
){
log_e
(
"esp_eth_start failed"
);
return
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment