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>2020-10-22 18:48:41 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-10-22 18:48:41 +0300
commit4325f07c354f84b315557cae759a1dc9d17aa0ba (patch)
tree63682d9c63afa837c0ded07b4c60948b48cda1ad /src/Hardware
parent56eb6347a62ab60848a2f46d27fa30a62a53f189 (diff)
Renames supports12864; release pin when a IoPort is destroyed
Diffstat (limited to 'src/Hardware')
-rw-r--r--src/Hardware/IoPorts.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Hardware/IoPorts.h b/src/Hardware/IoPorts.h
index d70366f0..f8d6975a 100644
--- a/src/Hardware/IoPorts.h
+++ b/src/Hardware/IoPorts.h
@@ -19,6 +19,8 @@ class IoPort
{
public:
IoPort() noexcept;
+ ~IoPort() { Release(); }
+
bool SetMode(PinAccess access) noexcept;
void Release() noexcept;
void AppendDetails(const StringRef& str) const noexcept;