Merge branch 'master' into i2c_detect
This commit is contained in:
commit
33eb4e6eca
47 changed files with 1819 additions and 459 deletions
|
|
@ -285,7 +285,6 @@ export default function ComponentCard(props: Props) {
|
|||
// ) : (
|
||||
<UnitMeasurementSummary
|
||||
component={component}
|
||||
excludedNodes={component.settings.excludedNodes}
|
||||
reading={UnitMeasurement.convertLastMeasurement(measurements)}
|
||||
//dense
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -449,7 +449,7 @@ export default function ComponentForm(props: Props) {
|
|||
let minimum = min ?? 0;
|
||||
let maximum = max ?? 100;
|
||||
if (compMode && form.component.settings.calibrate) {
|
||||
return Number(form.offset) <= maximum && Number(form.offset) > minimum;
|
||||
return Number(form.offset) <= maximum && Number(form.offset) >= minimum;
|
||||
}
|
||||
return !isNaN(Number(form.offset));
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue