don't launch boot_animation.py if there is no display.

This commit is contained in:
foamyguy 2025-08-04 09:31:47 -05:00
parent d7302ea2a7
commit cfe93619d0

View file

@ -40,4 +40,8 @@ if args is not None and len(args) > 0:
working_directory="/".join(next_code_file.split("/")[:-1]))
else:
supervisor.set_next_code_file("boot_animation.py")
# skip boot animation if no display
if supervisor.runtime.display is None:
supervisor.set_next_code_file("code.py")
else:
supervisor.set_next_code_file("boot_animation.py")