Skip to content

Commit

Permalink
Apply misc TERN
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed May 31, 2020
1 parent 6ee81f0 commit 7628895
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
7 changes: 2 additions & 5 deletions Marlin/src/gcode/calibrate/G28.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,11 +369,8 @@ void GcodeSuite::G28() {

if (doZ) {
TERN_(BLTOUCH, bltouch.init());
#if ENABLED(Z_SAFE_HOMING)
home_z_safely();
#else
homeaxis(Z_AXIS);
#endif

TERN(Z_SAFE_HOMING, home_z_safely(), homeaxis(Z_AXIS));

#if HOMING_Z_WITH_PROBE && defined(Z_AFTER_PROBING)
#if Z_AFTER_HOMING > Z_AFTER_PROBING
Expand Down
6 changes: 1 addition & 5 deletions Marlin/src/module/temperature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7628895

Please sign in to comment.