Apply HAS_HOTEND_OFFSET where needed

This commit is contained in:
Scott Lahteine
2019-03-11 20:48:49 -05:00
parent 11d6a939df
commit d94e077901
9 changed files with 31 additions and 34 deletions

View File

@ -230,13 +230,13 @@ void GcodeSuite::G34() {
// Restore the active tool after homing
#if HOTENDS > 1
tool_change(old_tool_index, 0,
tool_change(old_tool_index, 0, (
#if ENABLED(PARKING_EXTRUDER)
false // Fetch the previous toolhead
#else
true
#endif
);
));
#endif
#if HAS_LEVELING

View File

@ -418,7 +418,7 @@ inline void probe_sides(measurements_t &m, const float uncertainty) {
SERIAL_EOL();
}
#if HOTENDS > 1
#if HAS_HOTEND_OFFSET
//
// This function requires normalize_hotend_offsets() to be called
//
@ -642,7 +642,7 @@ void GcodeSuite::G425() {
report_measured_backlash(m);
report_measured_nozzle_dimensions(m);
report_measured_positional_error(m);
#if HOTENDS > 1
#if HAS_HOTEND_OFFSET
normalize_hotend_offsets();
report_hotend_offsets();
#endif