Skip to content

Commit cfe9361

Browse files
committed
don't launch boot_animation.py if there is no display.
1 parent d7302ea commit cfe9361

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)