MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / SetFansPwm

Method SetFansPwm

src/Tools/Tool.cpp:869–876  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

867}
868
869void Tool::SetFansPwm(float f) const noexcept
870{
871 const float pwmChange = reprap.GetFansManager().SetFansValue(fanMapping, f);
872 if (pwmChange != 0.0)
873 {
874 IterateHeaters([f](unsigned int heater) { reprap.GetHeat().SetFanFeedForwardPwm(heater, f); });
875 }
876}
877
878// Return true if this tool uses the specified heater
879bool Tool::UsesHeater(int8_t heater) const noexcept

Callers 2

SetMappedFanSpeedMethod · 0.80
GCodes2.cppFile · 0.80

Calls 2

SetFansValueMethod · 0.80
SetFanFeedForwardPwmMethod · 0.45

Tested by

no test coverage detected