Skip to content

Commit

Permalink
Merge pull request #56 from doingnz/fix-renamed-eventhandler-Updated
Browse files Browse the repository at this point in the history
Renamed event handlers to "Updated"
  • Loading branch information
adrianstevens authored Dec 14, 2023
2 parents 115a6b4 + d7f94f5 commit e218541
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void Initialize()
analogTemperature = new AnalogTemperature(
MeadowApp.Device.Pins.A00, AnalogTemperature.KnownSensorType.LM35);
analogTemperature.StartUpdating(TimeSpan.FromSeconds(30));
analogTemperature.TemperatureUpdated += AnalogTemperatureUpdated;
analogTemperature.Updated += AnalogTemperatureUpdated;
}

void AnalogTemperatureUpdated(object sender, Meadow.IChangeResult<Temperature> e)
Expand Down
2 changes: 1 addition & 1 deletion Source/Clima_Demo/MeadowApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public override Task Initialize()

if (clima.Anemometer is { } anemometer)
{
anemometer.WindSpeedUpdated += AnemometerUpdated;
anemometer.Updated += AnemometerUpdated;
}

if (clima.SolarVoltageInput is { } solarVoltage)
Expand Down

0 comments on commit e218541

Please sign in to comment.