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

Method SwitchOffAll

src/Heating/Heat.cpp:852–869  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

850}
851
852void 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.
872void Heat::SwitchOffAllLocalFromISR() noexcept

Callers 7

GCodes.cppFile · 0.80
THROWSFunction · 0.80
RunStateMachineMethod · 0.80
GCodes2.cppFile · 0.80
InvalidateResourcesMethod · 0.80
Platform.cppFile · 0.80
SpinMethod · 0.80

Calls 1

SwitchOffMethod · 0.45

Tested by

no test coverage detected