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

@@ -85,12 +85,12 @@ class SwitchMode:
def __init__(self):
pass
def enable_fastmode(self):
com.connect(19200,"")
def enable_fastmode(self, special_port):
com.connect(19200, special_port)
com.send("FM")
com.quitcom()
def disable_fastmode(self):
com.connect(19200, "")
def disable_fastmode(self, special_port):
com.connect(19200, special_port)
com.send("NM")
com.quitcom()