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:
authorManuel Coenen <manuel@duet3d.com>2021-02-01 18:14:22 +0300
committerManuel Coenen <manuel@duet3d.com>2021-02-01 18:14:22 +0300
commit1f925a6513f04fe4d468be67396e7ae67a5c8d42 (patch)
treec8711f1755605583baacc91de074aedf00f84124 /src/Hardware
parenta65677132ae99c96eff515b5a28123bc23bd1339 (diff)
parent08f71028d7266c88f0bdc6bd1e949d5bef4eef72 (diff)
Merge remote-tracking branch 'origin/3.3-dev' into wil-convert-same70-to-coren2g
Diffstat (limited to 'src/Hardware')
-rw-r--r--src/Hardware/IoPorts.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Hardware/IoPorts.cpp b/src/Hardware/IoPorts.cpp
index e0bc71b8..9417cf36 100644
--- a/src/Hardware/IoPorts.cpp
+++ b/src/Hardware/IoPorts.cpp
@@ -30,6 +30,10 @@ using
# include <CanId.h>
#endif
+#if SUPPORT_REMOTE_COMMANDS
+# include <CAN/CanInterface.h>
+#endif
+
// Read a port name parameter and assign some ports. Caller must call gb.Seen() with the appropriate letter and get 'true' returned before calling this.
// Return the number of ports allocated, or 0 if there was an error with the error message in 'reply'.
/*static*/ size_t IoPort::AssignPorts(GCodeBuffer& gb, const StringRef& reply, PinUsedBy neededFor, size_t numPorts, IoPort* const ports[], const PinAccess access[]) THROWS(GCodeException)
@@ -416,6 +420,12 @@ void IoPort::AppendPinName(const StringRef& str) const noexcept
{
if (IsValid())
{
+#if SUPPORT_REMOTE_COMMANDS
+ if (CanInterface::InExpansionMode())
+ {
+ str.catf("%u.", CanInterface::GetCanAddress());
+ }
+#endif
if (GetInvert())
{
str.cat('!');