Skip to content

Commit

Permalink
Tighten Davis Loop pressure range checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mcrossley committed Feb 24, 2021
1 parent 35fa803 commit 53c6da4
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion CumulusMX/DavisStation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1515,6 +1515,10 @@ private void GetAndProcessLoopData(int number)
{
DoOutdoorHumidity(loopData.OutsideHumidity, now);
}
else
{
cumulus.LogDebugMessage($"LOOP: Ignoring outdoor humidity data. RH={loopData.OutsideHumidity} %.");
}

if ((loopData.InsideTemperature > -200) && (loopData.InsideTemperature < 300))
{
Expand All @@ -1525,11 +1529,20 @@ private void GetAndProcessLoopData(int number)
{
DoOutdoorTemp(ConvertTempFToUser(loopData.OutsideTemperature), now);
}
else
{
cumulus.LogDebugMessage($"LOOP: Ignoring outdoor temp data. Temp={loopData.OutsideTemperature} F.");
}

if ((loopData.Pressure > 0) && (loopData.Pressure < 40))
if ((loopData.Pressure >= 20) && (loopData.Pressure < 32.5))
{
DoPressure(ConvertPressINHGToUser(loopData.Pressure), now);
}
else
{
cumulus.LogDebugMessage($"LOOP: Ignoring pressure data. Pressure={loopData.Pressure} inHg.");
}


DoPressTrend("Pressure trend");

Expand Down

0 comments on commit 53c6da4

Please sign in to comment.