Skip to content
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

Add hex-id output to prevent error #53

Merged
merged 1 commit into from
Dec 11, 2020
Merged

Add hex-id output to prevent error #53

merged 1 commit into from
Dec 11, 2020

Conversation

ewagner12
Copy link
Contributor

This PR adds hex-id variable assignment to is_egpu_connected() function even when egpu is not connected.

Previously when manually calling:

# egpu-switcher switch egpu

resulted in:

[info] EGPU is disconnected.
/usr/bin/egpu-switcher: line 377: hex_id: unbound variable

When setup to use an AMD gpu.
After this change, the script finishes normally.
I think this was the result of one of my PR changes so sorry about that.

@hertg
Copy link
Owner

hertg commented Dec 11, 2020

Thanks for noticing and adding the patch. :)

@hertg hertg merged commit 0889f63 into hertg:master Dec 11, 2020
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.

None yet

2 participants