mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
use developer mode
This commit is contained in:
@@ -272,28 +272,30 @@ const SystemLog = () => {
|
||||
)}
|
||||
</Grid>
|
||||
|
||||
<Grid>
|
||||
{readOpen && (
|
||||
<TextField
|
||||
value={readValue}
|
||||
onChange={(event) => {
|
||||
const value = event.target.value;
|
||||
if (value !== '' && !ALPHA_NUMERIC_DASH_REGEX.test(value)) {
|
||||
return;
|
||||
}
|
||||
setReadValue(value);
|
||||
}}
|
||||
focused={true}
|
||||
label="Send Read command"
|
||||
variant="outlined"
|
||||
helperText="<deviceID> <type ID> [offset] [length]"
|
||||
size="small"
|
||||
/>
|
||||
)}
|
||||
<IconButton onClick={sendReadCommand}>
|
||||
<PlayArrowIcon color="primary" />
|
||||
</IconButton>
|
||||
</Grid>
|
||||
{data.developer_mode && (
|
||||
<Grid>
|
||||
{readOpen && (
|
||||
<TextField
|
||||
value={readValue}
|
||||
onChange={(event) => {
|
||||
const value = event.target.value;
|
||||
if (value !== '' && !ALPHA_NUMERIC_DASH_REGEX.test(value)) {
|
||||
return;
|
||||
}
|
||||
setReadValue(value);
|
||||
}}
|
||||
focused={true}
|
||||
label="Send Read command"
|
||||
variant="outlined"
|
||||
helperText="<deviceID> <type ID> [offset] [length]"
|
||||
size="small"
|
||||
/>
|
||||
)}
|
||||
<IconButton onClick={sendReadCommand}>
|
||||
<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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user