mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +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_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
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user