Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2020-12-05 18:48:28 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-12-05 18:48:28 +0300
commit4e5922df259a74f9010c37f69e94f0fac8677763 (patch)
tree72d75ab993e307794b0464090d8c2ecf3b280dda /src/Storage
parent5c342f14ab791a5cd1714324a15924d824cdb8eb (diff)
Mutex & BinarySemaphore now derive from the underlying FreeRTOS structs
Diffstat (limited to 'src/Storage')
-rw-r--r--src/Storage/MassStorage.cpp2
-rw-r--r--src/Storage/MassStorage.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Storage/MassStorage.cpp b/src/Storage/MassStorage.cpp
index b8d4af26..60fc1a7e 100644
--- a/src/Storage/MassStorage.cpp
+++ b/src/Storage/MassStorage.cpp
@@ -948,7 +948,7 @@ bool MassStorage::IsDriveMounted(size_t drive) noexcept
return drive < NumSdCards && info[drive].isMounted;
}
-const Mutex& MassStorage::GetVolumeMutex(size_t vol) noexcept
+Mutex& MassStorage::GetVolumeMutex(size_t vol) noexcept
{
return info[vol].volMutex;
}
diff --git a/src/Storage/MassStorage.h b/src/Storage/MassStorage.h
index e1f5fa30..ee59e6cd 100644
--- a/src/Storage/MassStorage.h
+++ b/src/Storage/MassStorage.h
@@ -57,7 +57,7 @@ namespace MassStorage
void CloseAllFiles() noexcept;
unsigned int GetNumFreeFiles() noexcept;
void Spin() noexcept;
- const Mutex& GetVolumeMutex(size_t vol) noexcept;
+ Mutex& GetVolumeMutex(size_t vol) noexcept;
bool GetFileInfo(const char *filePath, GCodeFileInfo& info, bool quitEarly) noexcept;
void RecordSimulationTime(const char *printingFilePath, uint32_t simSeconds) noexcept; // Append the simulated printing time to the end of the file
FileWriteBuffer *AllocateWriteBuffer() noexcept;