Skip to content

'device' passed as string not USB device object #276

Description

@s1e3p3r

If 'device' and 'hardware' are both specified on the command line, eg: device="1:7" hardware="cc2531", 'killerbee/init,py' will pass the 'device' variable to the hardware class constructor: 'killerbee/dev_cc253x.py' class 'CC253Zx.init()' as a string, not as a usb device object as expected. This will raise an exception when device.set_configuration() is called. This appears to be an issue for all non-serial usb devices.

If neither 'device' or 'hardware' are specified it 'killerbee/init.py' will autodetect the usb device and passes the device object to the hardware class constructor correctly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions