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>2022-09-16 17:56:25 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-09-16 17:56:25 +0300
commit4c2175fe143f63166fd75d7afdee9ce979c323a5 (patch)
tree8850a61a0124dec206bc81c5c56f830b3af1e232
parentb732e293856240d575e58052160c180cd605d23c (diff)
Corrected the reported number of volumes in the OM for Duet 3 MB6HC 1.02
-rw-r--r--src/Storage/MassStorage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Storage/MassStorage.cpp b/src/Storage/MassStorage.cpp
index d1ac291d..fe50bb89 100644
--- a/src/Storage/MassStorage.cpp
+++ b/src/Storage/MassStorage.cpp
@@ -193,7 +193,7 @@ static FileStore files[MAX_FILES];
// Return the number of volumes, which on the 6HC is normally 1 but can be increased to 2
size_t MassStorage::GetNumVolumes() noexcept
{
- return (sd1Ports[0].IsValid()) ? 2 : 1; // we have 2 slots if the second one has a valid CS pin, else 1
+ return (reprap.GetPlatform().GetBoardType() >= BoardType::Duet3_6HC_v102 || sd1Ports[0].IsValid()) ? 2 : 1; // we have 2 slots if the second one has a valid CS pin, else 1
}
// Configure additional SD card slots