OpenDTU
OpenDTU copied to clipboard
Add connection check for W5500 to prevent bootloops
Besides some minor improvements, this PR adds a simple connection check for the W5500 before its initialization continues to prevent bootlops in case the W5500 is configured but not (properly) connected.
The check consists of reading the version of the W5500, which should always be 0x04, and checking that the interrupt line is driven high.