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

Method SetFanValue

src/Fans/FansManager.cpp:183–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183GCodeResult FansManager::SetFanValue(size_t fanNum, float speed, const StringRef& reply) noexcept
184{
185 auto fan = FindFan(fanNum);
186 if (fan.IsNotNull())
187 {
188 return fan->SetPwm(speed, reply);
189 }
190 reply.printf("Fan number %u not found", fanNum);
191 return GCodeResult::error;
192}
193
194// Update the PWM of the specified fan, returning the PWM change
195float FansManager::SetFanValue(size_t fanNum, float speed) noexcept

Callers 3

SetMappedFanSpeedMethod · 0.80
GCodes2.cppFile · 0.80
Adjust_SelectHelperMethod · 0.80

Calls 3

SetPwmMethod · 0.80
printfMethod · 0.45
GetPwmMethod · 0.45

Tested by

no test coverage detected