temporarily disable safe mode mechanism

issue #1581
This commit is contained in:
tildearrow 2024-01-25 19:48:49 -05:00
parent 20ffd5147f
commit faf6009548

View file

@ -3753,12 +3753,16 @@ bool DivEngine::preInit(bool noSafeMode) {
initConfDir(); initConfDir();
logD("config path: %s",configPath.c_str()); logD("config path: %s",configPath.c_str());
// TODO: re-enable with a better approach
// see issue #1581
/*
if (!noSafeMode) { if (!noSafeMode) {
String safeModePath=configPath+DIR_SEPARATOR_STR+"safemode"; String safeModePath=configPath+DIR_SEPARATOR_STR+"safemode";
if (touchFile(safeModePath.c_str())==-EEXIST) { if (touchFile(safeModePath.c_str())==-EEXIST) {
wantSafe=true; wantSafe=true;
} }
} }
*/
String logPath=configPath+DIR_SEPARATOR_STR+"furnace.log"; String logPath=configPath+DIR_SEPARATOR_STR+"furnace.log";
startLogFile(logPath.c_str()); startLogFile(logPath.c_str());
@ -3782,8 +3786,12 @@ bool DivEngine::preInit(bool noSafeMode) {
} }
void DivEngine::everythingOK() { void DivEngine::everythingOK() {
// TODO: re-enable with a better approach
// see issue #1581
/*
String safeModePath=configPath+DIR_SEPARATOR_STR+"safemode"; String safeModePath=configPath+DIR_SEPARATOR_STR+"safemode";
deleteFile(safeModePath.c_str()); deleteFile(safeModePath.c_str());
*/
} }
bool DivEngine::init() { bool DivEngine::init() {