| 664 | } |
| 665 | |
| 666 | void 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 |
| 680 | bool Tool::CanDriveExtruder(bool extrude) const noexcept |
no test coverage detected