Skip to content

Conversation

@therealjaypo
Copy link

Needed to release a pin that I'd previously retrieve, didn't know how to.
Wrote this half drunk on stream apologies for shit quality.

Copy link
Owner

@tino tino left a comment

Choose a reason for hiding this comment

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

Makes sense.

If you could add a test I can merge this.

.format(pin_def, self.name))
if self.taken[a_d][pin_nr] is False:
raise PinAlreadyTakenError('{0} pin {1} is not in use on {2}'
.format(a_d, bits[1], self.name))
Copy link
Owner

Choose a reason for hiding this comment

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

Looks a bit weird to raise a PinAlreadyTakenError while the opposite is true. I'd say we only warn in this case, but don't fail.

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.

2 participants