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

Method GetMode

src/Heating/RemoteHeater.cpp:382–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382HeaterMode RemoteHeater::GetMode() const noexcept
383{
384 return (tuningState != TuningState::notTuning) ? HeaterMode::tuning0
385 : (millis() - whenLastStatusReceived < RemoteStatusTimeout) ? lastMode
386 : HeaterMode::offline;
387}
388
389// This isn't just called to turn the heater on, it is called when the temperature needs to be updated
390GCodeResult RemoteHeater::SwitchOn(const StringRef& reply) noexcept

Callers 5

DisplayMessageBoxMethod · 0.45
GetChannelModeMethod · 0.45
THROWSFunction · 0.45
ResetChannelMethod · 0.45
RepRap.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected