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