The T-Balancer flow-meter time window seems to be scaled with a factor 4. Added the correction factor to get correct results.

This commit is contained in:
Michael Möller
2010-02-28 16:12:55 +00:00
parent 3a64f014e7
commit cebd4a79c9
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -214,7 +214,7 @@ namespace OpenHardwareMonitor.Hardware.TBalancer {
for (int i = 0; i < sensorhubFlows.Length; i++)
if (data[231 + i] > 0 && data[234] > 0) {
float pulsesPerSecond = ((float)data[231 + i]) / data[234];
float pulsesPerSecond = (data[231 + i] * 4.0f) / data[234];
float pulsesPerLiter = sensorhubFlows[i].Parameters[0].Value;
sensorhubFlows[i].Value = pulsesPerSecond * 3600 / pulsesPerLiter;
ActivateSensor(sensorhubFlows[i]);