Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Added usbtin interface #1

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

IsaacHook
Copy link

No description provided.

@IsaacHook IsaacHook added the enhancement New feature or request label Apr 29, 2020
@IsaacHook IsaacHook requested a review from LouisBrunner April 29, 2020 18:43
@@ -109,6 +109,7 @@
"filelock",
"mypy_extensions >= 0.4.0, < 0.5.0",
'pywin32;platform_system=="Windows"',
"pyusbtin @ git+https://github.com/fishpepper/pyUSBtin@master#egg=pyusbtin",
Copy link

@LouisBrunner LouisBrunner May 4, 2020

Choose a reason for hiding this comment

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

It's not released on PyPi right?

usbtin interface
"""

def __init__(self, channel: str, baudrate: int):

Choose a reason for hiding this comment

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

Shouldn't you capture all other arguments (*args, **kwargs) and forward them to super?

return None, False

canmsg = self.rx_fifo.pop(0)
data = [

Choose a reason for hiding this comment

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

Can you use bytearray() or similar to cast it? What are the different types?

self.usbtin.disconnect()

@staticmethod
def _detect_available_configs() -> List[can.typechecking.AutoDetectedConfig]:

Choose a reason for hiding this comment

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

Where/how is this used?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants