Skip to content
This repository was archived by the owner on Apr 10, 2020. It is now read-only.

Update Dht11Connection.cs #4

Merged
merged 1 commit into from
Jan 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions Raspberry.IO.Components/Sensors/Temperature/Dht/Dht11Connection.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#region References

#region References

using System;
using UnitsNet;
Expand Down Expand Up @@ -34,6 +35,13 @@ protected override TimeSpan WakeupInterval
{
get { return TimeSpan.FromMilliseconds(18); }
}

protected override TimeSpan HostReleaseBusInterval
{
get { throw new ArgumentException("DHT11 sensor does not have the host release time"); }
}

protected override bool HaveHostReleaseBus => false;

protected override DhtData GetDhtData(int temperatureValue, int humidityValue)
{
Expand All @@ -46,4 +54,4 @@ protected override DhtData GetDhtData(int temperatureValue, int humidityValue)

#endregion
}
}
}