mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 19:56:30 +00:00
fix my fix on autoexec.be
This commit is contained in:
parent
08343f5d35
commit
96197b9935
@ -423,10 +423,15 @@ const char berry_prog[] =
|
|||||||
|
|
||||||
const char berry_autoexec[] =
|
const char berry_autoexec[] =
|
||||||
// load "autoexec.be" using import, which loads either .be or .bec file
|
// load "autoexec.be" using import, which loads either .be or .bec file
|
||||||
|
"import string "
|
||||||
"try "
|
"try "
|
||||||
"load('autoexec.be') "
|
" load('autoexec.be') "
|
||||||
"except .. as e,m "
|
"except .. as e,m "
|
||||||
"log(\"BRY: exception in autoexec '\",e,\"':\",m) "
|
" if e=='io_error' && string.find(m, \"autoexec.be\")>0 "
|
||||||
|
" log(\"BRY: no autoexec.be\") "
|
||||||
|
" else "
|
||||||
|
" log(\"BRY: exception in autoexec.be: \"+e+\": \"+m) "
|
||||||
|
" end "
|
||||||
"end "
|
"end "
|
||||||
;
|
;
|
||||||
#endif // USE_BERRY
|
#endif // USE_BERRY
|
||||||
|
Loading…
x
Reference in New Issue
Block a user