Skip to content

Commit

Permalink
Sample cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianstevens committed Apr 5, 2023
1 parent fd1816f commit bf248b1
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,6 @@ public class MeadowApp : App<F7FeatherV2>

Pmsa003i pmsa003i;

public override Task Run()
{
Resolver.Log.Info("Run...");

pmsa003i.StartUpdating(TimeSpan.FromSeconds(2));

return base.Run();
}

public override Task Initialize()
{
var bus = Device.CreateI2cBus(I2cBusSpeed.Standard);
Expand All @@ -34,6 +25,15 @@ public override Task Initialize()
return base.Initialize();
}

public override Task Run()
{
Resolver.Log.Info("Run...");

pmsa003i.StartUpdating(TimeSpan.FromSeconds(2));

return base.Run();
}

private void Pmsa003i_Updated(object sender, IChangeResult<(
Density? StandardParticulateMatter_1micron,
Density? StandardParticulateMatter_2_5micron,
Expand Down

0 comments on commit bf248b1

Please sign in to comment.