Skip to content

Fix generic amd not returning a chip #105

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
Oct 19, 2020

Conversation

CrazyIvan359
Copy link
Contributor

@CrazyIvan359 CrazyIvan359 commented Oct 12, 2020

An x86/x64 device (ie Desktop) with an AMD processor will not return a chip type, which causes a recursion error in chip.Chip.__getattr__. This PR simply adds the possibility of returning GENERIC_LINUX_PC when no other AMD chip matches.

Tested working on:

  • VBox VM running Ubuntu 20.04 on AMD FX8320E
  • Ubuntu 20.04 on Intel i5-3470
  • Raspberry Pi 3B
  • Orange Pi Zero LTS

Fixes #96

@CrazyIvan359
Copy link
Contributor Author

@Petross404 please confirm this fixes the recursion error for you as well.

Copy link
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

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

This code change looks good to me. I'll wait on testing results before merging.

@makermelissa
Copy link
Collaborator

No response, but based on the change I'm just going to merge this in.

@makermelissa makermelissa merged commit 82d923e into adafruit:master Oct 19, 2020
@CrazyIvan359 CrazyIvan359 deleted the fix-amdgeneric branch October 19, 2020 14:42
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.

RecursionError when I am trying to 'import board'
2 participants