Clean up include, autoboot, split windows, shorten start.

Drop startup timeout to 100ms.
Clean up exceptions in include.
Cleanup stack in autoboot.
Split out windows into a second string, to work around overflow issue.
This commit is contained in:
Brad Nelson
2023-01-22 16:44:42 -08:00
parent 40400b873e
commit 9ef1ea9f90
7 changed files with 48 additions and 12 deletions

View File

@ -25,8 +25,10 @@ internals definitions
( Check for autoexec.fs and run if present.
Failing that, try to revive save image. )
: autoexec
300 for key? if rdrop exit then 10 ms next
s" /spiffs/autoexec.fs" ['] included catch 2drop drop
( Allow skip start files if key hit within 100 ms )
10 for key? if rdrop exit then 10 ms next
s" /spiffs/autoexec.fs" 2dup file-exists?
if included else 2drop then
['] revive catch drop ;
' autoexec ( leave on the stack for fini.fs )