Skip to content

Commit

Permalink
SLCAN interface: Added missing import
Browse files Browse the repository at this point in the history
  • Loading branch information
trinamic-LH committed Aug 31, 2020
1 parent 88c067d commit 24b4898
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PyTrinamic/connections/slcan_tmcl_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import can
from PyTrinamic.connections.tmcl_interface import tmcl_interface
from can import CanError
from serial.tools.list_ports import comports

class slcan_tmcl_interface(tmcl_interface):
"""
Expand Down Expand Up @@ -121,7 +122,7 @@ def list():
connection manager.
"""
connected = []
for element in sorted(serial.tools.list_ports.comports()):
for element in sorted(comports()):
connected.append(element.device)

return connected

0 comments on commit 24b4898

Please sign in to comment.