Skip to content

Commit e71d50f

Browse files
committed
flow velocity fix
1 parent 13d2e58 commit e71d50f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ecowitt.Controller/Mapping/SensorBuilderLogic.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public partial class SensorBuilder
88
private static Sensor<double>? BuildWaterFlowSensor(string propertyName, string alias, string propertyValue, bool isMetric = true)
99
{
1010
return double.TryParse(propertyValue, out var value)
11-
? new Sensor<double>(propertyName, alias, isMetric ? L2G(value) : value, isMetric ? "L/min" : "gal/min", SensorType.VolumeFlowRate)
11+
? new Sensor<double>(propertyName, alias, isMetric ? value : L2G(value), isMetric ? "L/min" : "gal/min", SensorType.VolumeFlowRate)
1212
: null;
1313
}
1414

0 commit comments

Comments
 (0)