mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
add values/settings #803
This commit is contained in:
@@ -111,7 +111,7 @@ WebLogService::QueuedLogMessage::QueuedLogMessage(unsigned long id, std::shared_
|
||||
|
||||
void WebLogService::operator<<(std::shared_ptr<uuid::log::Message> message) {
|
||||
#ifndef EMSESP_STANDALONE
|
||||
if (ESP.getMaxAllocHeap() < 20480) {
|
||||
if (maximum_log_messages_ > 10 && ESP.getMaxAllocHeap() < 41984) {
|
||||
maximum_log_messages(maximum_log_messages_ > 25 ? maximum_log_messages_ - 25 : 10);
|
||||
// EMSESP::logger().warning("Low memory: WebLog buffer reduced to %d entries", maximum_log_messages_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user