Closed FrightRisk closed 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?
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.
Thats the piece of code as discussed with haba and as I have it also in the MQTT branch
Implement PaulS's change to delay in a loop to give more time for sensing an Ethernet cable connection