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/HeaterMonitor.cpp')
-rw-r--r--src/Heating/HeaterMonitor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Heating/HeaterMonitor.cpp b/src/Heating/HeaterMonitor.cpp
index 3f9255a2..7b1ef9fb 100644
--- a/src/Heating/HeaterMonitor.cpp
+++ b/src/Heating/HeaterMonitor.cpp
@@ -17,7 +17,7 @@ HeaterMonitor::HeaterMonitor() noexcept
}
// Check if any action needs to be taken. Returns true if everything is OK
-bool HeaterMonitor::Check() noexcept
+bool HeaterMonitor::Check(unsigned int maxBadTemperatureCount) noexcept
{
if (sensorNumber >= 0 && trigger != HeaterMonitorTrigger::Disabled)
{
@@ -27,7 +27,7 @@ bool HeaterMonitor::Check() noexcept
if (err != TemperatureError::success)
{
badTemperatureCount++;
- if (badTemperatureCount > MaxBadTemperatureCount)
+ if (badTemperatureCount > maxBadTemperatureCount)
{
reprap.GetPlatform().MessageF(ErrorMessage, "Temperature reading error on sensor %d\n", sensorNumber);
return false;