From 5b53bdb499cb7221616171d7b5d8fd2f6da88ce6 Mon Sep 17 00:00:00 2001 From: elias Date: Thu, 3 Apr 2025 10:33:49 +0200 Subject: [PATCH] + LED blue on exit --- controller/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controller/main.py b/controller/main.py index d093cca..2662780 100644 --- a/controller/main.py +++ b/controller/main.py @@ -230,7 +230,9 @@ def main(): root.mainloop() except Exception as e: print(f"Error connecting to Robomaster: {e}") - print("Make sure the Robomaster is powered on and connected.") + finally: + if cmd: + cmd.led_control(comp="all", effect="solid", r=0, g=0, b=255) if __name__ == "__main__": main() \ No newline at end of file