Skip to content

Commit

Permalink
Fix static ethernet config
Browse files Browse the repository at this point in the history
With static ethernet config, `status` stayed `0` which let the function return
without setting `ethEvent`. Therefore, `reconnectETH` was never called and network services were never started.

Fixes meshtastic#2543
  • Loading branch information
micheljung committed Jun 6, 2023
1 parent 5edc872 commit c884698
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mesh/eth/ethClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ bool initEthernet()
} else if (config.network.address_mode == meshtastic_Config_NetworkConfig_AddressMode_STATIC) {
LOG_INFO("starting Ethernet Static\n");
Ethernet.begin(mac, config.network.ipv4_config.ip, config.network.ipv4_config.dns, config.network.ipv4_config.subnet);
status = 1;
} else {
LOG_INFO("Ethernet Disabled\n");
return false;
Expand Down

0 comments on commit c884698

Please sign in to comment.