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/audio/fatfs_source.cpp | |
| parent | 39460931d8e3d044f00f7a4f58b44b1035338f09 (diff) | |
| download | tangara-fw-72344b5777dd78bbad6bbc8b52c0fa271671cf90.tar.gz | |
no more acquire_spi :)
Diffstat (limited to 'src/tangara/audio/fatfs_source.cpp')
| -rw-r--r-- | src/tangara/audio/fatfs_source.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
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<FIL> file) : IStream(t), file_(std::move(file)) {} FatfsSource::~FatfsSource() { - auto lock = drivers::acquire_spi(); f_close(file_.get()); } auto FatfsSource::Read(std::span<std::byte> 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); |
