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/Fan.cpp')
-rw-r--r--src/Fan.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fan.cpp b/src/Fan.cpp
index 155ad99e..3b792b4a 100644
--- a/src/Fan.cpp
+++ b/src/Fan.cpp
@@ -204,7 +204,7 @@ void Fan::SetHeatersMonitored(uint16_t h)
void Fan::Refresh()
{
float reqVal;
-#ifdef DUET_NG
+#if HAS_SMART_DRIVERS
uint32_t driverChannelsMonitored = 0;
#endif
@@ -247,7 +247,7 @@ void Fan::Refresh()
// If the fan is on, add a hysteresis before turning it off
reqVal = max<float>(reqVal, (bangBangMode) ? max<float>(0.5, val) : minVal);
}
-#ifdef DUET_NG
+#if HAS_SMART_DRIVERS
const unsigned int channel = reprap.GetHeat().GetHeaterChannel(heaterHumber);
if (channel >= FirstTmcDriversSenseChannel && channel < FirstTmcDriversSenseChannel + NumTmcDriversSenseChannels)
{
@@ -269,7 +269,7 @@ void Fan::Refresh()
if (lastVal == 0.0)
{
// We are turning this fan on
-#ifdef DUET_NG
+#if HAS_SMART_DRIVERS
if (driverChannelsMonitored != 0)
{
reprap.GetPlatform().DriverCoolingFansOn(driverChannelsMonitored); // tell Platform that we have started a fan that cools drivers