Skip to content
Snippets Groups Projects
Commit 16f292a3 authored by Jens Nolte's avatar Jens Nolte
Browse files

Fix lan8720 phy would sometimes not initialize

parent c475f52e
No related branches found
No related tags found
1 merge request!16Merge dev branch into master
......@@ -51,8 +51,8 @@ void qthing::enable_ethernet_lan8720() {
gpio_pad_select_gpio(PIN_PHY_POWER);
gpio_set_direction(PIN_PHY_POWER, GPIO_MODE_OUTPUT);
gpio_set_level(PIN_PHY_POWER, 1);
// Allow the power up/down to take effect, min 300us
vTaskDelay(1);
// Allow the power up/down to take effect by waiting two ticks (one tick should suffice for gpio changes but showed to be problematic)
vTaskDelay(2);
try {
// Not required here, happens in qthing::initialize_network();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment