diff --git a/Source/implementations/f7/Meadow.F7/F7FileSystemInfo.cs b/Source/implementations/f7/Meadow.F7/F7FileSystemInfo.cs
index 49ac5e02..3d5c80c1 100644
--- a/Source/implementations/f7/Meadow.F7/F7FileSystemInfo.cs
+++ b/Source/implementations/f7/Meadow.F7/F7FileSystemInfo.cs
@@ -11,9 +11,6 @@ namespace Meadow;
///
public class F7FileSystemInfo : IPlatformOS.FileSystemInfo
{
- ///
- public new event ExternalStorageEventHandler ExternalStorageEvent = default!;
-
private readonly List _drives = new();
private F7ExternalStorage? _sdCard = default;
@@ -62,7 +59,7 @@ private void HandleInserted()
{
if (F7ExternalStorage.TryMount("/dev/mmcsd0", "/sdcard", out _sdCard))
{
- ExternalStorageEvent?.Invoke(_sdCard, ExternalStorageState.Inserted);
+ RaiseExternalStorageEvent(_sdCard, ExternalStorageState.Inserted);
}
}
}
@@ -71,7 +68,7 @@ private void HandleRemoved()
{
if (_sdCard != null)
{
- ExternalStorageEvent?.Invoke(_sdCard, ExternalStorageState.Ejected);
+ RaiseExternalStorageEvent(_sdCard, ExternalStorageState.Ejected);
_sdCard = null;
}
}