mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-10 06:31:39 +02:00
Bypass OOM-Crash on minimal version & history access
This commit is contained in:
parent
93b53a10d9
commit
c1f4e1b70f
2 changed files with 16 additions and 0 deletions
|
@ -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*/
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue