tbnobody / OpenDTU

Software for ESP32 to talk to Hoymiles/TSUN/Solenso Inverters
GNU General Public License v2.0
1.82k stars 511 forks source link

Add connection check for W5500 to prevent bootloops #2311

Closed LennartF22 closed 1 month ago

LennartF22 commented 1 month ago

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.

github-actions[bot] commented 3 weeks ago

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.