From 4b4fa308d04932aad0893a7f3eecb6d273e6d99e Mon Sep 17 00:00:00 2001 From: Chris Tacke Date: Mon, 9 Dec 2024 10:32:51 -0600 Subject: [PATCH] don't hide the ExternalStorageEvent --- Source/implementations/f7/Meadow.F7/F7FileSystemInfo.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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; } }