| 380 | } |
| 381 | |
| 382 | HeaterMode 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 |
| 390 | GCodeResult RemoteHeater::SwitchOn(const StringRef& reply) noexcept |
no outgoing calls
no test coverage detected