From 4c2175fe143f63166fd75d7afdee9ce979c323a5 Mon Sep 17 00:00:00 2001 From: David Crocker Date: Fri, 16 Sep 2022 15:56:25 +0100 Subject: Corrected the reported number of volumes in the OM for Duet 3 MB6HC 1.02 --- src/Storage/MassStorage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3