mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 05:06:44 +00:00
Only run command scripts in HASP mode
This commit is contained in:
parent
31da33f636
commit
b179c6cc45
@ -67,7 +67,7 @@ build_flags =
|
|||||||
-D HASP_VER_MAJ=0
|
-D HASP_VER_MAJ=0
|
||||||
-D HASP_VER_MIN=6
|
-D HASP_VER_MIN=6
|
||||||
;-D HASP_VER_REV=3
|
;-D HASP_VER_REV=3
|
||||||
-D HASP_VER_REV=3-rc2
|
-D HASP_VER_REV=3-rc3
|
||||||
${override.build_flags}
|
${override.build_flags}
|
||||||
|
|
||||||
; -- Shared library dependencies in all environments
|
; -- Shared library dependencies in all environments
|
||||||
|
@ -58,10 +58,11 @@ void setup()
|
|||||||
dispatchSetup(); // before hasp and oobe, asap after logging starts
|
dispatchSetup(); // before hasp and oobe, asap after logging starts
|
||||||
guiSetup();
|
guiSetup();
|
||||||
|
|
||||||
|
bool oobe = false;
|
||||||
#if HASP_USE_CONFIG > 0
|
#if HASP_USE_CONFIG > 0
|
||||||
if(!oobeSetup())
|
oobe = oobeSetup();
|
||||||
#endif
|
#endif
|
||||||
{
|
if(!oobe) {
|
||||||
haspSetup();
|
haspSetup();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -117,8 +118,10 @@ void setup()
|
|||||||
// guiStart();
|
// guiStart();
|
||||||
|
|
||||||
delay(20);
|
delay(20);
|
||||||
|
if(!oobe) {
|
||||||
dispatch_exec(NULL, "L:/boot.cmd", TAG_HASP);
|
dispatch_exec(NULL, "L:/boot.cmd", TAG_HASP);
|
||||||
wifi_run_scripts();
|
wifi_run_scripts();
|
||||||
|
}
|
||||||
mainLastLoopTime = -1000; // reset loop counter
|
mainLastLoopTime = -1000; // reset loop counter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user