We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fc9607 commit e1057f8Copy full SHA for e1057f8
1 file changed
uc2rest/mserial.py
@@ -119,6 +119,7 @@ def findCorrectSerialDevice(self):
119
self.serialport = "NotConnected"
120
self.serialdevice = None
121
self._logger.debug("No USB device connected! Using DUMMY!")
122
+ return None
123
124
def tryToConnect(self, port):
125
try:
@@ -353,7 +354,7 @@ def reconnect(self):
353
354
self.ser.close()
355
except:
356
pass
- self.openDevice(port = self.serialport, baud_rate = self.baudrate)
357
+ self.serialdevice = self.openDevice(port = self.serialport, baud_rate = self.baudrate)
358
359
def toggleCommandOutput(self, cmdCallBackFct=None):
360
# if true, all commands will be output to a callback function and stored for later use
0 commit comments