Skip to content

Commit

Permalink
Merge pull request #907 from WildernessLabs/scd4x_events
Browse files Browse the repository at this point in the history
Scd4x events
  • Loading branch information
jorgedevs authored Feb 20, 2024
2 parents 72bf8d3 + 0654087 commit b4bccfa
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@ private Task StopPeriodicUpdates()
/// </summary>
public override void StartUpdating(TimeSpan? updateInterval = null)
{
if (IsSampling)
{
return;
}

if (updateInterval != null && updateInterval.Value.TotalSeconds >= 30)
{
SendCommand(Commands.StartLowPowerPeriodicMeasurement);
Expand Down

0 comments on commit b4bccfa

Please sign in to comment.