Commit 3cf8491e by Bach Dániel

windows: fix wmi

parent 9cb6ee64
...@@ -367,6 +367,8 @@ class SerialLineReceiver(SerialLineReceiverBase): ...@@ -367,6 +367,8 @@ class SerialLineReceiver(SerialLineReceiverBase):
def main(): def main():
if system == 'Windows': if system == 'Windows':
import pythoncom
pythoncom.CoInitialize()
port = r'\\.\COM1' port = r'\\.\COM1'
else: else:
port = '/dev/ttyS0' port = '/dev/ttyS0'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment