mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
use developer mode
This commit is contained in:
@@ -272,6 +272,7 @@ const SystemLog = () => {
|
||||
)}
|
||||
</Grid>
|
||||
|
||||
{data.developer_mode && (
|
||||
<Grid>
|
||||
{readOpen && (
|
||||
<TextField
|
||||
@@ -294,6 +295,7 @@ const SystemLog = () => {
|
||||
<PlayArrowIcon color="primary" />
|
||||
</IconButton>
|
||||
</Grid>
|
||||
)}
|
||||
</Grid>
|
||||
<Box
|
||||
sx={{
|
||||
|
||||
@@ -67,4 +67,5 @@ export interface LogSettings {
|
||||
max_messages: number;
|
||||
compact: boolean;
|
||||
psram: boolean;
|
||||
developer_mode: boolean;
|
||||
}
|
||||
|
||||
@@ -243,6 +243,7 @@ void WebLogService::getSetValues(AsyncWebServerRequest * request, JsonVariant js
|
||||
root["max_messages"] = maximum_log_messages();
|
||||
root["compact"] = compact();
|
||||
root["psram"] = (EMSESP::system_.PSram() > 0);
|
||||
root["developer_mode"] = EMSESP::system_.developer_mode();
|
||||
|
||||
response->setLength();
|
||||
request->send(response);
|
||||
|
||||
Reference in New Issue
Block a user