Only run command scripts in HASP mode

This commit is contained in:
fvanroie 2022-05-23 10:17:25 +02:00
parent 31da33f636
commit b179c6cc45
2 changed files with 8 additions and 5 deletions

View File

@ -67,7 +67,7 @@ build_flags =
-D HASP_VER_MAJ=0
-D HASP_VER_MIN=6
;-D HASP_VER_REV=3
-D HASP_VER_REV=3-rc2
-D HASP_VER_REV=3-rc3
${override.build_flags}
; -- Shared library dependencies in all environments

View File

@ -58,10 +58,11 @@ void setup()
dispatchSetup(); // before hasp and oobe, asap after logging starts
guiSetup();
bool oobe = false;
#if HASP_USE_CONFIG > 0
if(!oobeSetup())
oobe = oobeSetup();
#endif
{
if(!oobe) {
haspSetup();
}
@ -117,8 +118,10 @@ void setup()
// guiStart();
delay(20);
dispatch_exec(NULL, "L:/boot.cmd", TAG_HASP);
wifi_run_scripts();
if(!oobe) {
dispatch_exec(NULL, "L:/boot.cmd", TAG_HASP);
wifi_run_scripts();
}
mainLastLoopTime = -1000; // reset loop counter
}