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

Method SetExtrusionFactor

src/GCodes/GCodes.cpp:5748–5754  ·  view source on GitHub ↗

Set an extrusion factor

Source from the content-addressed store, hash-verified

5746
5747// Set an extrusion factor
5748void GCodes::SetExtrusionFactor(size_t extruder, float factor) noexcept
5749{
5750 if (extruder < numExtruders)
5751 {
5752 extrusionFactors[extruder] = constrain<float>(factor, 0.0, 2.0);
5753 }
5754}
5755
5756// Process a GCode command from the 12864 LCD returning true if the command was accepted
5757bool GCodes::ProcessCommandFromLcd(const char *_ecv_array cmd) noexcept

Callers 1

Adjust_SelectHelperMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected