use developer mode

This commit is contained in:
proddy
2024-10-20 19:07:29 +02:00
parent 9320316041
commit adaa58c499
3 changed files with 32 additions and 28 deletions

View File

@@ -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={{

View File

@@ -67,4 +67,5 @@ export interface LogSettings {
max_messages: number;
compact: boolean;
psram: boolean;
developer_mode: boolean;
}

View File

@@ -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);