greatscottgadgets / pyfwup

Python FirmWare UPgrader -- a DFU (and similar) utility for python
BSD 3-Clause "New" or "Revised" License
22 stars 7 forks source link

Permission denied due to missing filter for find_dfu_devices #4

Closed lancelot666de closed 3 months ago

lancelot666de commented 2 years ago

When having USB devices exposing a DFU interface, greatfet firmware fails with a permission denied.

The reason seems that the arguments filtering the device are not passed to the function _find_dfudevices. Changing the call from

list(self.find_dfu_devices())  

to

list(self.find_dfu_devices(*args, **kwargs))

seems to fix the problem. The diff between the working version and the version of the repo is given next:

140c140
<         devices = list(self.find_dfu_devices(*args, **kwargs))
---
>         devices = list(self.find_dfu_devices())
antoinevg commented 3 months ago

Fixed in #5