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

Method HeatersToOff

src/Tools/Tool.cpp:666–677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664}
665
666void Tool::HeatersToOff() const noexcept
667{
668 for (size_t heaterIndex = 0; heaterIndex < heaterCount; heaterIndex++)
669 {
670 const int heaterNumber = heaters[heaterIndex];
671 // Don't switch a heater off if an active tool is using it and is different from this tool
672 if (!reprap.GetGCodes().IsHeaterUsedByDifferentCurrentTool(heaterNumber, this))
673 {
674 reprap.GetHeat().SwitchOff(heaterNumber);
675 }
676 }
677}
678
679// May be called from ISR
680bool Tool::CanDriveExtruder(bool extrude) const noexcept

Callers 1

THROWSFunction · 0.80

Calls 2

SwitchOffMethod · 0.45

Tested by

no test coverage detected