Skip to content

Added explicit soft reset for w5500 initialisation. #111

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 29, 2023
Merged

Added explicit soft reset for w5500 initialisation. #111

merged 1 commit into from
Apr 29, 2023

Conversation

BiffoBear
Copy link
Contributor

Fixes #109 by explicitly resetting the w5500 during initialisation. Tested on w5500 and w5100s for 10 ctrl-D soft resets each without raising an exception.

@tekktrik tekktrik requested a review from a team April 28, 2023 12:22
Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me.

I tested this version successfully with a Feather S2 TFT using the simpletest and two server example scripts from this repo.

I'm definitely seeing increased reliability during restarts via ctrl C / ctrl D as well as when files get saved and the device resets itself.

Thanks for this improvement @BiffoBear

@FoamyGuy FoamyGuy merged commit 05224ce into adafruit:main Apr 29, 2023
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Apr 30, 2023
@BiffoBear BiffoBear deleted the fix_w5500_reset branch May 1, 2023 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Throwing an exception, then hitting ctrl-D to reload may leak sockets
2 participants