Merge pull request #39 from FoamyGuy/no_display_fix

don't launch boot_animation.py if there is no display.
This commit is contained in:
foamyguy 2025-08-04 10:36:41 -05:00 committed by GitHub
commit 42bb023cef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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")