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-21 04:25:10 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-09-23 16:00:16 +0300
commitf94d04a9406f7c21a52f3c72b45c42a6a2268652 (patch)
tree5369b8ff70a61fe8f951104fd5df93e7a6c1639d
parent3ba2f4c802dd438d8a42918cf11a1b68ce174667 (diff)
Improved error message when M950 D used in SBC mode
-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;
}
}