From 96197b9935c9e86d3fed7cbf8ef4cb264d8eab76 Mon Sep 17 00:00:00 2001 From: Barbudor Date: Mon, 19 Apr 2021 21:07:46 +0200 Subject: [PATCH] fix my fix on autoexec.be --- tasmota/xdrv_52_7_berry_embedded.ino | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tasmota/xdrv_52_7_berry_embedded.ino b/tasmota/xdrv_52_7_berry_embedded.ino index bbcca21d1..c3a64b143 100644 --- a/tasmota/xdrv_52_7_berry_embedded.ino +++ b/tasmota/xdrv_52_7_berry_embedded.ino @@ -423,10 +423,15 @@ const char berry_prog[] = const char berry_autoexec[] = // load "autoexec.be" using import, which loads either .be or .bec file + "import string " "try " - "load('autoexec.be') " + " load('autoexec.be') " "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 " ; #endif // USE_BERRY