Skip to content

Commit

Permalink
don't hide the ExternalStorageEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
ctacke committed Dec 9, 2024
1 parent 1baf175 commit 4b4fa30
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Source/implementations/f7/Meadow.F7/F7FileSystemInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ namespace Meadow;
/// </summary>
public class F7FileSystemInfo : IPlatformOS.FileSystemInfo
{
/// <inheritdoc/>
public new event ExternalStorageEventHandler ExternalStorageEvent = default!;

private readonly List<IStorageInformation> _drives = new();
private F7ExternalStorage? _sdCard = default;

Expand Down Expand Up @@ -62,7 +59,7 @@ private void HandleInserted()
{
if (F7ExternalStorage.TryMount("/dev/mmcsd0", "/sdcard", out _sdCard))
{
ExternalStorageEvent?.Invoke(_sdCard, ExternalStorageState.Inserted);
RaiseExternalStorageEvent(_sdCard, ExternalStorageState.Inserted);
}
}
}
Expand All @@ -71,7 +68,7 @@ private void HandleRemoved()
{
if (_sdCard != null)
{
ExternalStorageEvent?.Invoke(_sdCard, ExternalStorageState.Ejected);
RaiseExternalStorageEvent(_sdCard, ExternalStorageState.Ejected);
_sdCard = null;
}
}
Expand Down

0 comments on commit 4b4fa30

Please sign in to comment.