diff options
author | Manuel Coenen <manuel@duet3d.com> | 2021-02-01 18:14:22 +0300 |
---|---|---|
committer | Manuel Coenen <manuel@duet3d.com> | 2021-02-01 18:14:22 +0300 |
commit | 1f925a6513f04fe4d468be67396e7ae67a5c8d42 (patch) | |
tree | c8711f1755605583baacc91de074aedf00f84124 /src/Hardware | |
parent | a65677132ae99c96eff515b5a28123bc23bd1339 (diff) | |
parent | 08f71028d7266c88f0bdc6bd1e949d5bef4eef72 (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.cpp | 10 |
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('!'); |