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:
Diffstat (limited to 'src/Platform/Platform.cpp')
-rw-r--r--src/Platform/Platform.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/Platform/Platform.cpp b/src/Platform/Platform.cpp
index 0a91998c..22c8fa31 100644
--- a/src/Platform/Platform.cpp
+++ b/src/Platform/Platform.cpp
@@ -4583,16 +4583,21 @@ GCodeResult Platform::ConfigurePort(GCodeBuffer& gb, const StringRef& reply) THR
#ifdef DUET3_MB6HC
case 64: // D
# if HAS_SBC_INTERFACE
- if (!reprap.UsingSbcInterface())
-# endif
+ if (reprap.UsingSbcInterface())
{
- return MassStorage::ConfigureSdCard(gb, reply);
+ reply.copy("SD card not supported in SBC mode");
+ return GCodeResult::error;
}
+# endif
+ return MassStorage::ConfigureSdCard(gb, reply);
#endif
- //no break
default:
+#ifdef DUET3_MB6HC
+ reply.copy("exactly one of FHJPSRD must be given");
+#else
reply.copy("exactly one of FHJPSR must be given");
+#endif
return GCodeResult::error;
}
}