mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-24 12:35:51 +00:00
Merge pull request #6978 from thinkyhead/fix_z_endstop_adj
Fix z_endstop_adj initializer
This commit is contained in:
commit
7f0945d2b1
@ -7918,19 +7918,18 @@ inline void gcode_M121() { endstops.enable_globally(false); }
|
||||
#ifdef PAUSE_PARK_X_POS
|
||||
+ PAUSE_PARK_X_POS
|
||||
#endif
|
||||
#if HOTENDS > 1 && DISABLED(DUAL_X_CARRIAGE)
|
||||
+ (active_extruder ? hotend_offset[X_AXIS][active_extruder] : 0)
|
||||
#endif
|
||||
;
|
||||
const float y_pos = parser.seen('Y') ? parser.value_linear_units() : 0
|
||||
#ifdef PAUSE_PARK_Y_POS
|
||||
+ PAUSE_PARK_Y_POS
|
||||
#endif
|
||||
;
|
||||
|
||||
#if HOTENDS > 1 && DISABLED(DUAL_X_CARRIAGE)
|
||||
if (active_extruder > 0) {
|
||||
if (!parser.seen('X')) x_pos += hotend_offset[X_AXIS][active_extruder];
|
||||
if (!parser.seen('Y')) y_pos += hotend_offset[Y_AXIS][active_extruder];
|
||||
}
|
||||
+ (active_extruder ? hotend_offset[Y_AXIS][active_extruder] : 0)
|
||||
#endif
|
||||
;
|
||||
|
||||
const bool job_running = print_job_timer.isRunning();
|
||||
|
||||
|
@ -1192,7 +1192,7 @@ void MarlinSettings::reset() {
|
||||
|
||||
#elif ENABLED(Z_DUAL_ENDSTOPS)
|
||||
|
||||
float z_endstop_adj =
|
||||
z_endstop_adj =
|
||||
#ifdef Z_DUAL_ENDSTOPS_ADJUSTMENT
|
||||
Z_DUAL_ENDSTOPS_ADJUSTMENT
|
||||
#else
|
||||
|
@ -1731,7 +1731,10 @@ void kill_screen(const char* lcd_msg) {
|
||||
|
||||
static bool _level_state;
|
||||
void _lcd_toggle_bed_leveling() { set_bed_leveling_enabled(_level_state); }
|
||||
|
||||
#if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
|
||||
void _lcd_set_z_fade_height() { set_z_fade_height(planner.z_fade_height); }
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Step 1: Bed Level entry-point
|
||||
|
7
buildroot/bin/build_marlin_fail
Executable file
7
buildroot/bin/build_marlin_fail
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if arduino --verify --board arduino:avr:mega:cpu=atmega2560 Marlin/Marlin.ino ; then
|
||||
return 1
|
||||
else
|
||||
return 0
|
||||
fi
|
Loading…
Reference in New Issue
Block a user