This commit is contained in:
ABelliqueux 2025-02-15 14:56:14 +01:00
parent 77c17f11ec
commit 52d058047a
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,9 @@ def find_cam_port():
return None return None
def send_serial_cmd(cam_port, cmd:str, clear=True): 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) con = serial.Serial(cam_port, baudrate=115200)
if clear: if clear:
append = b'\rclear\r' append = b'\rclear\r'