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:
Diffstat (limited to 'src/Fans/LocalFan.h')
-rw-r--r--src/Fans/LocalFan.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/Fans/LocalFan.h b/src/Fans/LocalFan.h
index 2fcfa789..6835952b 100644
--- a/src/Fans/LocalFan.h
+++ b/src/Fans/LocalFan.h
@@ -13,29 +13,29 @@
class LocalFan : public Fan
{
public:
- LocalFan(unsigned int fanNum);
- ~LocalFan();
-
- bool Check() override; // update the fan PWM returning true if it is a thermostatic fan that is on
- bool IsEnabled() const override { return port.IsValid(); }
- GCodeResult SetPwmFrequency(PwmFrequency freq, const StringRef& reply) override;
- int32_t GetRPM() override;
- GCodeResult ReportPortDetails(const StringRef& str) const override;
+ LocalFan(unsigned int fanNum) noexcept;
+ ~LocalFan() noexcept;
+
+ bool Check() noexcept override; // update the fan PWM returning true if it is a thermostatic fan that is on
+ bool IsEnabled() const noexcept override { return port.IsValid(); }
+ GCodeResult SetPwmFrequency(PwmFrequency freq, const StringRef& reply) noexcept override;
+ int32_t GetRPM() noexcept override;
+ GCodeResult ReportPortDetails(const StringRef& str) const noexcept override;
#if SUPPORT_CAN_EXPANSION
- void UpdateRpmFromRemote(CanAddress src, int32_t rpm) override { }
+ void UpdateRpmFromRemote(CanAddress src, int32_t rpm) noexcept override { }
#endif
- bool AssignPorts(const char *pinNames, const StringRef& reply);
+ bool AssignPorts(const char *pinNames, const StringRef& reply) noexcept;
- void Interrupt();
+ void Interrupt() noexcept;
protected:
- GCodeResult Refresh(const StringRef& reply) override;
- bool UpdateFanConfiguration(const StringRef& reply) override;
+ GCodeResult Refresh(const StringRef& reply) noexcept override;
+ bool UpdateFanConfiguration(const StringRef& reply) noexcept override;
private:
- void SetHardwarePwm(float pwmVal);
- void InternalRefresh();
+ void SetHardwarePwm(float pwmVal) noexcept;
+ void InternalRefresh() noexcept;
PwmPort port; // port used to control the fan
IoPort tachoPort; // port used to read the tacho