timeout fix

This commit is contained in:
elias 2025-04-03 12:33:53 +02:00
parent 9047f69296
commit 7d5c339917

View File

@ -226,7 +226,7 @@ class RobomasterUI:
def main(): def main():
ip_address = "192.168.2.1" ip_address = "192.168.2.1"
try: try:
cmd = rm.Commander(ip=ip_address, timeout=5) cmd = rm.Commander(ip=ip_address, timeout=20)
print(f"Connected to Robomaster. Version: {cmd.version()}") print(f"Connected to Robomaster. Version: {cmd.version()}")
root = tk.Tk() root = tk.Tk()
root.resizable(False, False) root.resizable(False, False)