diff options
author | David Crocker <dcrocker@eschertech.com> | 2022-01-10 00:29:47 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2022-01-10 00:29:47 +0300 |
commit | d9ff09f7c9030389c0fa7bb8eb7f85156c9d9045 (patch) | |
tree | 050deb7efa50f9749876532d5f799ae0e08ab388 /src/Platform/Platform.cpp | |
parent | c0356a4933bbbe11af20032ee1965358a29cf4bd (diff) |
Support external SD card on MB6HC
Diffstat (limited to 'src/Platform/Platform.cpp')
-rw-r--r-- | src/Platform/Platform.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/Platform/Platform.cpp b/src/Platform/Platform.cpp index 8e1b12f8..b6a14f48 100644 --- a/src/Platform/Platform.cpp +++ b/src/Platform/Platform.cpp @@ -4404,7 +4404,13 @@ GCodeResult Platform::ConfigurePort(GCodeBuffer& gb, const StringRef& reply) THR { // Exactly one of FHJPSR is allowed unsigned int charsPresent = 0; - for (char c : (const char[]){'R', 'J', 'F', 'H', 'P', 'S'}) + for (char c : +#ifdef DUET3_V06 + (const char[]){'D', 'R', 'J', 'F', 'H', 'P', 'S'} +#else + (const char[]){'R', 'J', 'F', 'H', 'P', 'S'} +#endif + ) { charsPresent <<= 1; if (gb.Seen(c)) @@ -4443,6 +4449,10 @@ GCodeResult Platform::ConfigurePort(GCodeBuffer& gb, const StringRef& reply) THR const uint32_t slot = gb.GetLimitedUIValue('R', MaxSpindles); return spindles[slot].Configure(gb, reply); } +#ifdef DUET3_V06 + case 64: // D + return MassStorage::ConfigureSdCard(gb, reply); +#endif default: reply.copy("exactly one of FHJPSR must be given"); |