Skip to content

Commit

Permalink
Small HACK to powercycle the ethernet chip on boot
Browse files Browse the repository at this point in the history
This increases the reliability of connecting after a reboot
  • Loading branch information
jeremypoulter committed Jul 17, 2022
1 parent 2dec3de commit 01b079e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/net_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,14 @@ net_setup()

#ifdef ENABLE_WIRED_ETHERNET
//ETH.setHostname(esp_hostname.c_str());

#ifdef PHY_PWR
pinMode(PHY_PWR, OUTPUT);
digitalWrite(PHY_PWR, LOW);
delay(1000);
digitalWrite(PHY_PWR, HIGH);
#endif

ETH.begin();
#endif

Expand Down

0 comments on commit 01b079e

Please sign in to comment.