Skip to content

Commit 42bb023

Browse files
authored
Merge pull request #39 from FoamyGuy/no_display_fix
don't launch boot_animation.py if there is no display.
2 parents d7302ea + cfe9361 commit 42bb023

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/boot.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,8 @@
4040
working_directory="/".join(next_code_file.split("/")[:-1]))
4141

4242
else:
43-
supervisor.set_next_code_file("boot_animation.py")
43+
# skip boot animation if no display
44+
if supervisor.runtime.display is None:
45+
supervisor.set_next_code_file("code.py")
46+
else:
47+
supervisor.set_next_code_file("boot_animation.py")

0 commit comments

Comments
 (0)