From 72344b5777dd78bbad6bbc8b52c0fa271671cf90 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 4 Jun 2024 08:09:40 +1000 Subject: no more acquire_spi :) --- src/tangara/audio/fatfs_stream_factory.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/tangara/audio/fatfs_stream_factory.cpp') diff --git a/src/tangara/audio/fatfs_stream_factory.cpp b/src/tangara/audio/fatfs_stream_factory.cpp index db08e68c..80677b2d 100644 --- a/src/tangara/audio/fatfs_stream_factory.cpp +++ b/src/tangara/audio/fatfs_stream_factory.cpp @@ -65,13 +65,7 @@ auto FatfsStreamFactory::create(std::string path, uint32_t offset) } std::unique_ptr file = std::make_unique(); - FRESULT res; - - { - auto lock = drivers::acquire_spi(); - res = f_open(file.get(), path.c_str(), FA_READ); - } - + FRESULT res = f_open(file.get(), path.c_str(), FA_READ); if (res != FR_OK) { ESP_LOGE(kTag, "failed to open file! res: %i", res); return {}; -- cgit v1.2.3