From 73e11da55e76a6a574d44e7fad0f201e6da689c2 Mon Sep 17 00:00:00 2001 From: tyler274 Date: Wed, 4 Aug 2021 18:24:29 -0400 Subject: [PATCH] Update ftdi.py The decoding fails on the currently released verion of pylibftdi as it returns a `str` now instead of `bytes`. --- ftdi.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ftdi.py b/ftdi.py index d88c6dc..7b507f7 100644 --- a/ftdi.py +++ b/ftdi.py @@ -74,10 +74,8 @@ def get_ftdi_device_list(): dev_list = [] for device in Driver().list_devices(): - # list_devices returns bytes rather than strings - dev_info = map(lambda x: x.decode('latin1'), device) # device must always be this triple - vendor, product, serial = dev_info + vendor, product, serial = device dev_list.append(serial) return dev_list