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/Pid.h')
-rw-r--r--src/Heating/Pid.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Heating/Pid.h b/src/Heating/Pid.h
index 90e98e2b..67e019c4 100644
--- a/src/Heating/Pid.h
+++ b/src/Heating/Pid.h
@@ -68,6 +68,9 @@ public:
void UseModel(bool b) // Use or don't use the model to provide the PID parameters
{ useModel = b; }
+ bool IsHeaterEnabled() const // Is this heater enabled?
+ { return model.IsEnabled(); }
+
void GetHeaterProtection(float& pMaxTempExcursion, float& pMaxFaultTime) const
{ pMaxTempExcursion = maxTempExcursion; pMaxFaultTime = maxHeatingFaultTime; }