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

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]);

View File

@ -69,5 +69,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.1.24.0")]
[assembly: AssemblyFileVersion("0.1.24.0")]
[assembly: AssemblyVersion("0.1.24.1")]
[assembly: AssemblyFileVersion("0.1.24.1")]