Bypass OOM-Crash on minimal version & history access

This commit is contained in:
Frank 2024-01-20 15:46:47 +01:00
parent 93b53a10d9
commit c1f4e1b70f
2 changed files with 16 additions and 0 deletions

View file

@ -805,6 +805,8 @@ class RestApi {
}
obj[F("max")] = max;
obj[F("maxDay")] = mApp->getHistoryMaxDay();
#else
obj[F("refresh")] = 86400; // 1 day;
#endif /*ENABLE_HISTORY*/
}
@ -820,6 +822,8 @@ class RestApi {
max = value;
}
obj[F("max")] = max;
#else
obj[F("refresh")] = 86400; // 1 day
#endif /*ENABLE_HISTORY*/
}