Skip to content

Commit f37b128

Browse files
committed
reverted calculation for current and rather switch units mA / A
1 parent b7ee42d commit f37b128

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
@@ -23,7 +23,7 @@ public partial class SensorBuilder
2323
private static Sensor<int>? BuildCurrentSensor(string propertyName, string alias, string propertyValue, bool isMilliAmp = false)
2424
{
2525
return int.TryParse(propertyValue, out var value)
26-
? new Sensor<int>(propertyName, alias, isMilliAmp ? value / 1000 : value, "A", SensorType.Current)
26+
? new Sensor<int>(propertyName, alias, value, isMilliAmp ? "mA" : "A", SensorType.Current)
2727
: null;
2828
}
2929

0 commit comments

Comments
 (0)