Skip to content

Update cpboard.py #3005

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 3 commits into from
Jun 4, 2020
Merged

Update cpboard.py #3005

merged 3 commits into from
Jun 4, 2020

Conversation

sommersoft
Copy link

Pretty low-key PR. These are some changes I've been holding onto while working on RosiePi.

  • Biggest change is to the use of async as a parameter/variable. async became a keyword in CPython 3.7, so its usage would raise an exception.

  • Updated usage of pyserial to match the changes from version 3.

  • Ran black on the file.

  • Added VID/PID for itsybitsy_m4_express to the respective USB device lookup functions

@jepler jepler merged commit fffe171 into adafruit:master Jun 4, 2020
tools/cpboard.py Outdated
def execute(self, code, timeout=10, async=False):
def execute(self, code, timeout=10, wait_for_response=False):
Copy link

Choose a reason for hiding this comment

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

Hmmm I merged this PR and then I went looking at it. Isn't the sense of "wait_for_response" backwards from what it actually does?

Copy link
Author

Choose a reason for hiding this comment

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

Isn't the sense of "wait_for_response" backwards from what it actually does?

Right you are. 🤦 I've actually had a few of these edits in branches as my use of it progressed; I think I had it proper at one point, but this definitely isn't. Fix imminent.

sommersoft added a commit to sommersoft/circuitpython that referenced this pull request Jun 4, 2020
sommersoft added a commit that referenced this pull request Jun 6, 2020
Fix Backwards Logic of 'wait_for_response' In #3005
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.

3 participants