mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
use smaller json key names, increase buffer size. fixes #157
This commit is contained in:
@@ -43,7 +43,7 @@ class SensorForm extends React.Component<SensorFormProps> {
|
||||
open
|
||||
>
|
||||
<DialogTitle id="user-form-dialog-title">
|
||||
Editing Sensor #{sensor.no}
|
||||
Editing Sensor #{sensor.n}
|
||||
</DialogTitle>
|
||||
<DialogContent dividers>
|
||||
<TextValidator
|
||||
@@ -51,8 +51,8 @@ class SensorForm extends React.Component<SensorFormProps> {
|
||||
errorMessages={['Not a valid name']}
|
||||
fullWidth
|
||||
variant="outlined"
|
||||
value={sensor.id}
|
||||
onChange={handleSensorChange('id')}
|
||||
value={sensor.i}
|
||||
onChange={handleSensorChange('i')}
|
||||
margin="normal"
|
||||
label="Name"
|
||||
name="id"
|
||||
@@ -67,12 +67,12 @@ class SensorForm extends React.Component<SensorFormProps> {
|
||||
label="Custom Offset (°C)"
|
||||
name="offset"
|
||||
type="number"
|
||||
value={sensor.offset}
|
||||
value={sensor.o}
|
||||
fullWidth
|
||||
variant="outlined"
|
||||
InputProps={{ inputProps: { min: '-5', max: '5', step: '0.1' } }}
|
||||
margin="normal"
|
||||
onChange={handleSensorChange('offset')}
|
||||
onChange={handleSensorChange('o')}
|
||||
/>
|
||||
</DialogContent>
|
||||
<DialogActions>
|
||||
|
||||
Reference in New Issue
Block a user