Skip to content

Commit 80296c1

Browse files
committed
make compatible with pyodide
1 parent 9533d62 commit 80296c1

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

uc2rest/mserial.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@ def __init__(self, port, baudrate=115200, timeout=5,
6060
if IS_SERIAL:
6161
self.serialdevice= self.openDevice(port, baudrate)
6262
else:
63-
self.serialdevice = MockSerial(port, baudrate, timeout=timeout)
64-
self.is_connected = False
65-
self.manufacturer = "UC2Mock"
66-
self._logger.debug("You have to ensure that the serial device is connected to the computer!")
63+
''' this is most likely happening because we work under pyoidide '''
64+
self._logger.debug("You have to provide the serial interface on your own")
6765

6866
def breakCurrentCommunication(self):
6967
self.resetLastCommand = True

0 commit comments

Comments
 (0)