diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-02-16 17:10:43 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-02-16 17:10:43 +0300 |
commit | 315f4f47613fe09e613b6c639a7ddc37af3516d2 (patch) | |
tree | 45133ce063bf3bb2c40f522471f0074038168149 /src/GPIO | |
parent | 9885ed7cc55cb19fde1be14c8adfd11dfa7f86cf (diff) |
Replaced HeaterProtection instances by HeaterMonitors
Diffstat (limited to 'src/GPIO')
-rw-r--r-- | src/GPIO/GpioPorts.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/GPIO/GpioPorts.h b/src/GPIO/GpioPorts.h index b8290c28..30d5a074 100644 --- a/src/GPIO/GpioPorts.h +++ b/src/GPIO/GpioPorts.h @@ -25,6 +25,7 @@ public: boardAddress (CanId::MasterAddress), #endif currentState(false) { } + GpInputPort(const GpInputPort&) = delete; bool GetState() const noexcept; bool IsUnused() const noexcept; @@ -50,9 +51,13 @@ private: class GpOutputPort { public: + GpOutputPort() noexcept #if SUPPORT_CAN_EXPANSION - GpOutputPort() noexcept { boardAddress = CanId::MasterAddress; } + : boardAddress(CanId::MasterAddress) #endif + { } + + GpOutputPort(const GpOutputPort&) = delete; GCodeResult WriteAnalog(uint32_t gpioPortNumber, bool isServo, float pwm, const GCodeBuffer& gb, const StringRef& reply) const noexcept; GCodeResult Configure(uint32_t gpioNumber, bool isServo, GCodeBuffer& gb, const StringRef& reply) THROWS(GCodeException); |