This commit is contained in:
SelfConfusion 2024-07-13 01:28:41 +08:00
parent b61d4eb2e9
commit 3f3f834ed9
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import serial.tools.list_ports as ls_ports
from typing import Optional, Any from typing import Optional, Any
import platform import platform
import functools import functools
import time
class App(ctk.CTk): class App(ctk.CTk):
@ -487,6 +488,7 @@ class App(ctk.CTk):
) )
) )
self.serial.write(bytes) self.serial.write(bytes)
time.sleep(0.001)
else: else:
print("Please Connect to Serial") print("Please Connect to Serial")
messagebox.showError("Please Connect Serial Port") messagebox.showError("Please Connect Serial Port")