Apply misc TERN
This commit is contained in:
1 parent
6ee81f0d26
commit
7628895ac8
2 files changed
+3
-10
No files matched your search
@@ -900,11 +900,7 @@ void Temperature::min_temp_error(const heater_ind_t heater) {
|
||||
|
||||
#else // No PID enabled
|
||||
|
||||
#if HEATER_IDLE_HANDLER
|
||||
const bool is_idling = hotend_idle[ee].timed_out;
|
||||
#else
|
||||
constexpr bool is_idling = false;
|
||||
#endif
|
||||
const bool is_idling = TERN0(HEATER_IDLE_HANDLER, hotend_idle[ee].timed_out);
|
||||
const float pid_output = (!is_idling && temp_hotend[ee].celsius < temp_hotend[ee].target) ? BANG_MAX : 0;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user