diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-10-22 18:48:41 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-10-22 18:48:41 +0300 |
commit | 4325f07c354f84b315557cae759a1dc9d17aa0ba (patch) | |
tree | 63682d9c63afa837c0ded07b4c60948b48cda1ad /src/Hardware | |
parent | 56eb6347a62ab60848a2f46d27fa30a62a53f189 (diff) |
Renames supports12864; release pin when a IoPort is destroyed
Diffstat (limited to 'src/Hardware')
-rw-r--r-- | src/Hardware/IoPorts.h | 2 |
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; |