Fix issue #3
This commit is contained in:
parent
77c17f11ec
commit
52d058047a
|
@ -9,6 +9,9 @@ def find_cam_port():
|
|||
return None
|
||||
|
||||
def send_serial_cmd(cam_port, cmd:str, clear=True):
|
||||
if cam_port is None:
|
||||
print("No com. port found.")
|
||||
return False
|
||||
con = serial.Serial(cam_port, baudrate=115200)
|
||||
if clear:
|
||||
append = b'\rclear\r'
|
||||
|
|
Loading…
Reference in New Issue