| 850 | } |
| 851 | |
| 852 | void Heat::SwitchOffAll(bool includingChamberAndBed) noexcept |
| 853 | { |
| 854 | ReadLocker lock(heatersLock); |
| 855 | |
| 856 | for (int heater = 0; heater < (int)MaxHeaters; ++heater) |
| 857 | { |
| 858 | Heater * const h = heaters[heater]; |
| 859 | if (h != nullptr && (includingChamberAndBed || !IsBedOrChamberHeater(heater))) |
| 860 | { |
| 861 | h->SwitchOff(); |
| 862 | lastStandbyTools[heater] = nullptr; |
| 863 | if (heater == heaterBeingTuned) |
| 864 | { |
| 865 | heaterBeingTuned = -1; |
| 866 | } |
| 867 | } |
| 868 | } |
| 869 | } |
| 870 | |
| 871 | // Turn off all local heaters. Safe to call from an ISR. Called only from the tick ISR. |
| 872 | void Heat::SwitchOffAllLocalFromISR() noexcept |
no test coverage detected