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_source.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/tangara/audio/fatfs_source.cpp') diff --git a/src/tangara/audio/fatfs_source.cpp b/src/tangara/audio/fatfs_source.cpp index fb6a684d..4b517af8 100644 --- a/src/tangara/audio/fatfs_source.cpp +++ b/src/tangara/audio/fatfs_source.cpp @@ -29,12 +29,10 @@ FatfsSource::FatfsSource(codecs::StreamType t, std::unique_ptr file) : IStream(t), file_(std::move(file)) {} FatfsSource::~FatfsSource() { - auto lock = drivers::acquire_spi(); f_close(file_.get()); } auto FatfsSource::Read(std::span dest) -> ssize_t { - auto lock = drivers::acquire_spi(); if (f_eof(file_.get())) { return 0; } @@ -52,7 +50,6 @@ auto FatfsSource::CanSeek() -> bool { } auto FatfsSource::SeekTo(int64_t destination, SeekFrom from) -> void { - auto lock = drivers::acquire_spi(); switch (from) { case SeekFrom::kStartOfStream: f_lseek(file_.get(), destination); -- cgit v1.2.3