Refactor sensor printing

This commit is contained in:
elecpower
2021-01-16 06:22:28 +11:00
parent bd93a0dd0b
commit 5321a8afe9
6 changed files with 210 additions and 287 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ RawSourceRange RawSource::getRange(const ModelData * model, const GeneralSetting
result.min = -30000 * result.step;
result.max = +30000 * result.step;
result.decimals = sensor.prec;
result.unit = sensor.unitString();
result.unit = SensorData::unitToString(qr.quot);
break;
}