| 620 | } |
| 621 | |
| 622 | void Tool::Standby() noexcept |
| 623 | { |
| 624 | HeatersToActiveOrStandby(false); |
| 625 | |
| 626 | // NIST Standard M6 says "When the tool change is complete: * The spindle will be stopped. [...]" |
| 627 | // We don't have M6 but Tn already does tool change so we need |
| 628 | // to make sure the spindle is off |
| 629 | if (spindleNumber >= 0) |
| 630 | { |
| 631 | Spindle& spindle = reprap.GetPlatform().AccessSpindle(spindleNumber); |
| 632 | spindle.SetState(SpindleState::stopped); |
| 633 | } |
| 634 | |
| 635 | state = ToolState::standby; |
| 636 | } |
| 637 | |
| 638 | void Tool::HeatersToActiveOrStandby(bool active) const noexcept |
| 639 | { |
no test coverage detected