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:
commit
42bb023cef
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]))
|
||||
|
||||
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