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

Method SwitchOffAllLocalFromISR

src/Heating/Heat.cpp:872–885  ·  view source on GitHub ↗

Turn off all local heaters. Safe to call from an ISR. Called only from the tick ISR.

Source from the content-addressed store, hash-verified

870
871// Turn off all local heaters. Safe to call from an ISR. Called only from the tick ISR.
872void 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
888void Heat::SetFanFeedForwardPwm(unsigned int heater, float fanPwm) const noexcept

Callers 1

TickMethod · 0.80

Calls 2

IsLocalMethod · 0.45
SwitchOffMethod · 0.45

Tested by

no test coverage detected