summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsquareplusc <cliechti@gmx.net>2020-09-21 00:59:08 +0200
committerGitHub <noreply@github.com>2020-09-21 00:59:08 +0200
commit3e7e896bc3ccda033eb747056192858ba630156a (patch)
tree1829ed66efde29b8aa56a992cba4624d5b173672
parent8905abb978e3802cc35570120bc3da6a6395932a (diff)
parentca42ff25796472c57004dcf4db5d370517d6fafb (diff)
downloadpyserial-git-3e7e896bc3ccda033eb747056192858ba630156a.tar.gz
Merge pull request #495 from johannesacco/master
list_ports_linux: Correct "interface" property on Linux hosts
-rw-r--r--serial/tools/list_ports_linux.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/serial/tools/list_ports_linux.py b/serial/tools/list_ports_linux.py
index 1c0a780..c8c1cfc 100644
--- a/serial/tools/list_ports_linux.py
+++ b/serial/tools/list_ports_linux.py
@@ -59,7 +59,7 @@ class SysFS(list_ports_common.ListPortInfo):
self.manufacturer = self.read_line(self.usb_device_path, 'manufacturer')
self.product = self.read_line(self.usb_device_path, 'product')
- self.interface = self.read_line(self.device_path, 'interface')
+ self.interface = self.read_line(self.usb_interface_path, 'interface')
if self.subsystem in ('usb', 'usb-serial'):
self.apply_usb_info()