diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-06-04 08:09:40 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-06-04 08:09:40 +1000 |
| commit | 72344b5777dd78bbad6bbc8b52c0fa271671cf90 (patch) | |
| tree | e060c1a54cafed5c8c0cd5974250e8fab95e3349 /src/tangara/database/file_gatherer.cpp | |
| parent | 39460931d8e3d044f00f7a4f58b44b1035338f09 (diff) | |
| download | tangara-fw-72344b5777dd78bbad6bbc8b52c0fa271671cf90.tar.gz | |
no more acquire_spi :)
Diffstat (limited to 'src/tangara/database/file_gatherer.cpp')
| -rw-r--r-- | src/tangara/database/file_gatherer.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/tangara/database/file_gatherer.cpp b/src/tangara/database/file_gatherer.cpp index 75a1af27..dd4b1138 100644 --- a/src/tangara/database/file_gatherer.cpp +++ b/src/tangara/database/file_gatherer.cpp @@ -33,11 +33,7 @@ auto FileGathererImpl::FindFiles( const TCHAR* next_path = static_cast<const TCHAR*>(next_path_str.c_str()); FF_DIR dir; - FRESULT res; - { - auto lock = drivers::acquire_spi(); - res = f_opendir(&dir, next_path); - } + FRESULT res = f_opendir(&dir, next_path); if (res != FR_OK) { // TODO: log. continue; @@ -45,10 +41,7 @@ auto FileGathererImpl::FindFiles( for (;;) { FILINFO info; - { - auto lock = drivers::acquire_spi(); - res = f_readdir(&dir, &info); - } + res = f_readdir(&dir, &info); if (res != FR_OK || info.fname[0] == 0) { // No more files in the directory. break; @@ -72,7 +65,6 @@ auto FileGathererImpl::FindFiles( } } - auto lock = drivers::acquire_spi(); f_closedir(&dir); } } |
