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:
authorDavid Crocker <dcrocker@eschertech.com>2018-03-16 17:49:58 +0300
committerDavid Crocker <dcrocker@eschertech.com>2018-03-16 17:50:20 +0300
commitdf7c0f0a4a20a5f8f908424e9570ffe38566c890 (patch)
treefec1f61d35f7421a95a98d724388fe4c0a7589b9 /src/Fan.cpp
parent875c2d29d4436da34ac01b6292ef658660ee948e (diff)
Version 1.21RC5
New features: - New M569 T parameter options to specify step pulse width, step pulse interval, direction setup and direction hold times - M665 now sets the M208 limits (except Z min) to match the machine limits, so that Duet Web Control reports the correct values Bug fixes: - M116 commands were sometimes executed out-of-order relative to previous G10 commands if movement commands were in progress - G10 L20 now computes the workplace coordinate origin correctly - G53 is only active until the end of the current line of GCode - The default coordinate system is the one selected by G54 - G54..G59 update the user coordinates immediately - Fixed "Error: Pop(): stack underflow!" when a file or macro is terminated due to an illegal move command - A short delay is inserted when M558 is used to change the Z probe type, to allow the averaging filters to accumulate the new data - M291 messages which are non-blocking (i.e. mode < 2) are now synchronised to queued moves, like M117 messages Other changes: - Duet Web Control and PanelDue now report the coordinates relative to the origin of the current workplace - Rewrote dhcp_rec function on Duet06/085 to avoid goto statements (possible fix for startup problem when using DHCP)
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 0a3deb9f..367433b0 100644
--- a/src/Fan.cpp
+++ b/src/Fan.cpp
@@ -116,7 +116,7 @@ bool Fan::Configure(unsigned int mcode, int fanNum, GCodeBuffer& gb, const Strin
}
if (heatersMonitored != 0)
{
- SetValue(1.0); // default the fan speed to full for safety
+ SetPwm(1.0); // default the fan speed to full for safety
}
}
@@ -124,7 +124,7 @@ bool Fan::Configure(unsigned int mcode, int fanNum, GCodeBuffer& gb, const Strin
if (seen && gb.Seen('S')) // Set new fan value - process this after processing 'H' or it may not be acted on
{
const float f = constrain<float>(gb.GetFValue(), 0.0, 255.0);
- SetValue(f);
+ SetPwm(f);
}
if (seen)
@@ -158,7 +158,7 @@ bool Fan::Configure(unsigned int mcode, int fanNum, GCodeBuffer& gb, const Strin
return seen;
}
-void Fan::SetValue(float speed)
+void Fan::SetPwm(float speed)
{
if (speed > 1.0)
{