diff --git a/GPX b/GPX index 686ace7..8e97402 160000 --- a/GPX +++ b/GPX @@ -1 +1 @@ -Subproject commit 686ace74851f88812e20d3ba236fa3fd431760ce +Subproject commit 8e97402e0c2e5b2defc971951c728fa449509206 diff --git a/octoprint_GPX/__init__.py b/octoprint_GPX/__init__.py index c79e558..52cd8d9 100644 --- a/octoprint_GPX/__init__.py +++ b/octoprint_GPX/__init__.py @@ -115,7 +115,7 @@ def serial_factory(self, comm, port, baudrate, timeout, *args, **kwargs): try: import glob ports = glob.glob("/dev/serial/by-id/*MakerBot_Industries_The_Replicator*") - if ports is not None: + if ports: port = os.path.normpath(os.path.join("/dev/serial/by-id/", os.readlink(ports[0]))) except: # oh well, it was worth a try