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>2021-12-10 12:39:52 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-12-10 12:39:52 +0300
commit904cf76271936d3799070ea67cacf387326f5ba4 (patch)
tree7c31f03ad2f162db900071aab2251f3d383e9ab9
parent4639c116e9d430020326212d258e315c97dd8b57 (diff)
Added files missed from previous commit
-rw-r--r--src/GCodes/GCodes.h5
-rw-r--r--src/GCodes/GCodes3.cpp12
2 files changed, 16 insertions, 1 deletions
diff --git a/src/GCodes/GCodes.h b/src/GCodes/GCodes.h
index b74493c0..e504f742 100644
--- a/src/GCodes/GCodes.h
+++ b/src/GCodes/GCodes.h
@@ -281,6 +281,11 @@ public:
# endif
#endif
+#if !HAS_MASS_STORAGE && !HAS_EMBEDDED_FILES && defined(DUET_NG)
+ // Function called by RepRap.cpp to enable PanelDue by default in the Duet 2 SBC build
+ void SetAux0CommsProperties(uint32_t mode) const noexcept;
+#endif
+
#if SUPPORT_REMOTE_COMMANDS
void SwitchToExpansionMode() noexcept;
void SetRemotePrinting(bool isPrinting) noexcept { isRemotePrinting = isPrinting; }
diff --git a/src/GCodes/GCodes3.cpp b/src/GCodes/GCodes3.cpp
index 5e314d7b..0a13640b 100644
--- a/src/GCodes/GCodes3.cpp
+++ b/src/GCodes/GCodes3.cpp
@@ -1863,4 +1863,14 @@ bool GCodes::ProcessWholeLineComment(GCodeBuffer& gb, const StringRef& reply) TH
return true;
}
-// End
+#if !HAS_MASS_STORAGE && !HAS_EMBEDDED_FILES && defined(DUET_NG)
+
+// Function called by RepRap.cpp to enable PanelDue by default in the Duet 2 SBC build
+void GCodes::SetAux0CommsProperties(uint32_t mode) const noexcept
+{
+ auxGCode->SetCommsProperties(mode);
+}
+
+#endif
+
+ // End