Fixed an error that could cause the app to crash if cloned from the repository.

This commit is contained in:
janis
2022-05-16 16:01:35 +02:00
parent ab3159119f
commit d04063c2e9
6 changed files with 33 additions and 24 deletions

View File

@@ -7,7 +7,7 @@ class ComportService:
self.__import = []
self.__working = []
def get_comport(self, special_port=""):
def get_comport(self, special_port):
self.__comport = [comport.device for comport in serial.tools.list_ports.comports()]
self.__pos = 0
if special_port != "":