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
|
|
@ -39,5 +39,9 @@ if args is not None and len(args) > 0:
|
|||
supervisor.set_next_code_file(next_code_file, sticky_on_reload=False, reload_on_error=True,
|
||||
working_directory="/".join(next_code_file.split("/")[:-1]))
|
||||
|
||||
else:
|
||||
# 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