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-02-14 16:12:33 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-02-14 16:12:33 +0300
commit4f593f75c86cc035d7cdcd744e6a52ca940aa2d5 (patch)
treef5b48208f940c191b937f8b3efed0281ae942146 /src/Storage/MassStorage.h
parent252f7739eb448c4a24bfb000a01f72facfe8e019 (diff)
Added SD card partition size to M39 response and object model
Diffstat (limited to 'src/Storage/MassStorage.h')
-rw-r--r--src/Storage/MassStorage.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Storage/MassStorage.h b/src/Storage/MassStorage.h
index 551bbe6a..2d351569 100644
--- a/src/Storage/MassStorage.h
+++ b/src/Storage/MassStorage.h
@@ -102,7 +102,16 @@ namespace MassStorage
ok = 2
};
- InfoResult GetCardInfo(size_t slot, uint64_t& capacity, uint64_t& freeSpace, uint32_t& speed, uint32_t& clSize) noexcept;
+ struct SdCardReturnedInfo
+ {
+ uint64_t cardCapacity;
+ uint64_t partitionSize;
+ uint64_t freeSpace;
+ uint32_t clSize;
+ uint32_t speed;
+ };
+
+ InfoResult GetCardInfo(size_t slot, SdCardReturnedInfo& returnedInfo) noexcept;
# ifdef DUET3_MB6HC
GCodeResult ConfigureSdCard(GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeException); // Configure additional SD card slots