Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianstevens committed Dec 11, 2023
1 parent bd44987 commit 374d35c
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ namespace Meadow.Foundation.Sensors.Atmospheric
/// </summary>
public partial class Sgp40 : ByteCommsSensorBase<int>, II2cPeripheral
{
/// <summary>
/// </summary>
public event EventHandler<ChangeResult<int>> VocIndexUpdated = default!;

/// <summary>
/// The VOC Index, from the last reading
/// </summary>
Expand Down Expand Up @@ -98,17 +94,6 @@ protected override Task<int> ReadSensor()
return Task.FromResult(data[0] << 8 | data[1]);
}

/// <summary>
/// Inheritance-safe way to raise events and notify observers.
/// </summary>
/// <param name="changeResult"></param>
protected override void RaiseEventsAndNotify(IChangeResult<int> changeResult)
{
VocIndexUpdated?.Invoke(this, new ChangeResult<int>(VocIndex, changeResult.Old));

base.RaiseEventsAndNotify(changeResult);
}

/// <summary>
/// This command turns the hotplate off and stops the measurement. Subsequently, the sensor enters idle mode.
/// </summary>
Expand Down

0 comments on commit 374d35c

Please sign in to comment.