DCC-EX / CommandStation-EX

EX-CommandStation firmware from DCC-EX. Includes support for WiFi and a standalone WiThrottle server. A complete re-write of the original DCC++.
https://dcc-ex.github.io/
GNU General Public License v3.0
157 stars 108 forks source link

Add loop to retry Ethernet cable connection #173

Closed FrightRisk closed 3 years ago

FrightRisk commented 3 years ago

Implement PaulS's change to delay in a loop to give more time for sensing an Ethernet cable connection

FrightRisk commented 3 years ago

Is this what was tested? Is it ok to leave the declaration of "startmilli" where it is, or should it go at the top of the routine?

Asbelos commented 3 years ago

Modern practise coding tends towards defining a local variable at the point where it is first needed.

You will generally find all my code does this.. it makes it more readable than having to scroll to find the variables.

grbba commented 3 years ago

Thats the piece of code as discussed with haba and as I have it also in the MQTT branch