diff options
Diffstat (limited to 'src/Heating/RemoteHeater.h')
-rw-r--r-- | src/Heating/RemoteHeater.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/Heating/RemoteHeater.h b/src/Heating/RemoteHeater.h index f373f84a..ebaa99cc 100644 --- a/src/Heating/RemoteHeater.h +++ b/src/Heating/RemoteHeater.h @@ -15,30 +15,30 @@ class RemoteHeater : public Heater { public: - RemoteHeater(unsigned int num, CanAddress board); - ~RemoteHeater(); + RemoteHeater(unsigned int num, CanAddress board) noexcept; + ~RemoteHeater() noexcept; GCodeResult ConfigurePortAndSensor(const char *portName, PwmFrequency freq, unsigned int sensorNumber, const StringRef& reply) override; GCodeResult SetPwmFrequency(PwmFrequency freq, const StringRef& reply) override; - GCodeResult ReportDetails(const StringRef& reply) const override; - - void Spin() override; // Called in a tight loop to keep things running - void SwitchOff() override; // Not even standby - all heater power off - GCodeResult ResetFault(const StringRef& reply) override; // Reset a fault condition - only call this if you know what you are doing - float GetTemperature() const override; // Get the current temperature - float GetAveragePWM() const override; // Return the running average PWM to the heater. Answer is a fraction in [0, 1]. - float GetAccumulator() const override; // Return the integral accumulator - void StartAutoTune(float targetTemp, float maxPwm, const StringRef& reply) override; // Start an auto tune cycle for this PID - void GetAutoTuneStatus(const StringRef& reply) const override; // Get the auto tune status or last result - void Suspend(bool sus) override; // Suspend the heater to conserve power or while doing Z probing - void UpdateRemoteStatus(CanAddress src, const CanHeaterReport& report) override; + GCodeResult ReportDetails(const StringRef& reply) const noexcept override; + + void Spin() noexcept override; // Called in a tight loop to keep things running + void SwitchOff() noexcept override; // Not even standby - all heater power off + GCodeResult ResetFault(const StringRef& reply) noexcept override; // Reset a fault condition - only call this if you know what you are doing + float GetTemperature() const noexcept override; // Get the current temperature + float GetAveragePWM() const noexcept override; // Return the running average PWM to the heater. Answer is a fraction in [0, 1]. + float GetAccumulator() const noexcept override; // Return the integral accumulator + void StartAutoTune(float targetTemp, float maxPwm, const StringRef& reply) noexcept override; // Start an auto tune cycle for this PID + void GetAutoTuneStatus(const StringRef& reply) const noexcept override; // Get the auto tune status or last result + void Suspend(bool sus) noexcept override; // Suspend the heater to conserve power or while doing Z probing + void UpdateRemoteStatus(CanAddress src, const CanHeaterReport& report) noexcept override; protected: - void ResetHeater() override; - HeaterMode GetMode() const override; - GCodeResult SwitchOn(const StringRef& reply) override; // Turn the heater on and set the mode - GCodeResult UpdateModel(const StringRef& reply) override; // Called when the heater model has been changed - GCodeResult UpdateFaultDetectionParameters(const StringRef& reply) override; + void ResetHeater() noexcept override; + HeaterMode GetMode() const noexcept override; + GCodeResult SwitchOn(const StringRef& reply) noexcept override; // Turn the heater on and set the mode + GCodeResult UpdateModel(const StringRef& reply) noexcept override; // Called when the heater model has been changed + GCodeResult UpdateFaultDetectionParameters(const StringRef& reply) noexcept override; private: static constexpr uint32_t RemoteStatusTimeout = 2000; |