Turn off all local heaters. Safe to call from an ISR. Called only from the tick ISR.
| 870 | |
| 871 | // Turn off all local heaters. Safe to call from an ISR. Called only from the tick ISR. |
| 872 | void Heat::SwitchOffAllLocalFromISR() noexcept |
| 873 | { |
| 874 | for (Heater* h : heaters) |
| 875 | { |
| 876 | if (h != nullptr |
| 877 | #if SUPPORT_CAN_EXPANSION |
| 878 | && h->IsLocal() |
| 879 | #endif |
| 880 | ) |
| 881 | { |
| 882 | h->SwitchOff(); |
| 883 | } |
| 884 | } |
| 885 | } |
| 886 | |
| 887 | // Update the heater feedforward because of a change in the print cooling fan PWM |
| 888 | void Heat::SetFanFeedForwardPwm(unsigned int heater, float fanPwm) const noexcept |