From f4735c0104b643e060a1ee4c1c6fafa075d76e75 Mon Sep 17 00:00:00 2001 From: David Crocker Date: Sat, 30 Jan 2021 14:19:55 +0000 Subject: Fixed missing EXINT interrupt priority initialisation --- src/Hardware/IoPorts.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/Hardware/IoPorts.cpp') diff --git a/src/Hardware/IoPorts.cpp b/src/Hardware/IoPorts.cpp index 97b9da17..8e85fc83 100644 --- a/src/Hardware/IoPorts.cpp +++ b/src/Hardware/IoPorts.cpp @@ -26,6 +26,10 @@ using AnalogIn::AdcBits; # include #endif +#if SUPPORT_REMOTE_COMMANDS +# include +#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) @@ -412,6 +416,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('!'); -- cgit v1.2.3