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/Heating/HeaterProtection.h')
-rw-r--r--src/Heating/HeaterProtection.h38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/Heating/HeaterProtection.h b/src/Heating/HeaterProtection.h
index 7db1f383..19f5df36 100644
--- a/src/Heating/HeaterProtection.h
+++ b/src/Heating/HeaterProtection.h
@@ -38,28 +38,28 @@ class HeaterProtection
public:
friend class Heat;
- HeaterProtection(size_t index);
- void Init(float tempLimit);
+ HeaterProtection(size_t index) noexcept;
+ void Init(float tempLimit) noexcept;
- HeaterProtection *Next() const { return next; }
- void SetNext(HeaterProtection *n) { next = n; }
+ HeaterProtection *Next() const noexcept { return next; }
+ void SetNext(HeaterProtection *n) noexcept { next = n; }
- bool Check(); // Check if any action needs to be taken
+ bool Check() noexcept; // Check if any action needs to be taken
- int GetHeater() const { return heater; }
- void SetHeater(int newHeater); // Set the heater to control
+ int GetHeater() const noexcept { return heater; }
+ void SetHeater(int newHeater) noexcept; // Set the heater to control
- int GetSensorNumber() const { return sensorNumber; } // Get the supervisory sensor number
- void SetSensorNumber(int sn); // Set the supervisory sensor number
+ int GetSensorNumber() const noexcept { return sensorNumber; } // Get the supervisory sensor number
+ void SetSensorNumber(int sn) noexcept; // Set the supervisory sensor number
- float GetTemperatureLimit() const { return limit; } // Get the temperature limit
- void SetTemperatureLimit(float newLimit); // Set the temperature limit
+ float GetTemperatureLimit() const noexcept { return limit; } // Get the temperature limit
+ void SetTemperatureLimit(float newLimit) noexcept; // Set the temperature limit
- HeaterProtectionAction GetAction() const { return action; } // Get the action to trigger when a temperature event occurs
- void SetAction(HeaterProtectionAction newAction); // Set the action to trigger when a temperature event occurs
+ HeaterProtectionAction GetAction() const noexcept { return action; } // Get the action to trigger when a temperature event occurs
+ void SetAction(HeaterProtectionAction newAction) noexcept; // Set the action to trigger when a temperature event occurs
- HeaterProtectionTrigger GetTrigger() const { return trigger; } // Get the condition for a temperature event
- void SetTrigger(HeaterProtectionTrigger newTrigger); // Set the condition for a temperature event
+ HeaterProtectionTrigger GetTrigger() const noexcept { return trigger; } // Get the condition for a temperature event
+ void SetTrigger(HeaterProtectionTrigger newTrigger) noexcept; // Set the condition for a temperature event
private:
HeaterProtection *next; // link to next HeaterProtection item for the same heater
@@ -73,22 +73,22 @@ private:
size_t badTemperatureCount; // how many consecutive sensor reading faults we have had
};
-inline void HeaterProtection::SetSensorNumber(int sn)
+inline void HeaterProtection::SetSensorNumber(int sn) noexcept
{
sensorNumber = sn;
}
-inline void HeaterProtection::SetTemperatureLimit(float newLimit)
+inline void HeaterProtection::SetTemperatureLimit(float newLimit) noexcept
{
limit = newLimit;
}
-inline void HeaterProtection::SetAction(HeaterProtectionAction newAction)
+inline void HeaterProtection::SetAction(HeaterProtectionAction newAction) noexcept
{
action = newAction;
}
-inline void HeaterProtection::SetTrigger(HeaterProtectionTrigger newTrigger)
+inline void HeaterProtection::SetTrigger(HeaterProtectionTrigger newTrigger) noexcept
{
trigger = newTrigger;
}