don't launch boot_animation.py if there is no display.
This commit is contained in:
parent
d7302ea2a7
commit
cfe93619d0
1 changed files with 5 additions and 1 deletions
|
|
@ -40,4 +40,8 @@ if args is not None and len(args) > 0:
|
||||||
working_directory="/".join(next_code_file.split("/")[:-1]))
|
working_directory="/".join(next_code_file.split("/")[:-1]))
|
||||||
|
|
||||||
else:
|
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")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue