use smaller json key names, increase buffer size. fixes #157

This commit is contained in:
Proddy
2021-10-14 10:09:28 +02:00
parent 0b796a85a8
commit c029cf79f7
4 changed files with 46 additions and 48 deletions

View File

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