Skip to content

Commit 044a9a4

Browse files
authored
Merge pull request #4358 from 3d-gussner/MK3_3131_fix_Z_crash
Fix Z crash and update to 3.13.1
2 parents e58a902 + 5581b78 commit 044a9a4

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

Firmware/Configuration.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ extern const char _sPrinterMmuName[] PROGMEM;
1515
// Firmware version
1616
#define FW_MAJOR 3
1717
#define FW_MINOR 13
18-
#define FW_REVISION 0
18+
#define FW_REVISION 1
1919
//#define FW_FLAVOR RC //uncomment if DEBUG, DEVEL, ALPHA, BETA or RC
20-
#define FW_FLAVERSION 1 //uncomment if FW_FLAVOR is defined and versioning is needed. Limited to max 8.
20+
//#define FW_FLAVERSION 1 //uncomment if FW_FLAVOR is defined and versioning is needed. Limited to max 8.
2121
#ifndef FW_FLAVOR
2222
#define FW_VERSION STR(FW_MAJOR) "." STR(FW_MINOR) "." STR(FW_REVISION)
2323
#else
2424
#define FW_VERSION STR(FW_MAJOR) "." STR(FW_MINOR) "." STR(FW_REVISION) "-" STR(FW_FLAVOR) "" STR(FW_FLAVERSION)
2525
#endif
2626

27-
#define FW_COMMIT_NR 6873
27+
#define FW_COMMIT_NR 6876
2828

2929
// FW_VERSION_UNKNOWN means this is an unofficial build.
3030
// The firmware should only be checked into github with this symbol.

Firmware/mesh_bed_calibration.cpp

+14-8
Original file line numberDiff line numberDiff line change
@@ -2790,16 +2790,22 @@ BedSkewOffsetDetectionResultType improve_bed_offset_and_skew(int8_t method, int8
27902790
#endif //NEW_XYZCAL
27912791

27922792
bool sample_z() {
2793-
bool sampled = true;
2794-
//make space
2795-
raise_z(150);
2796-
lcd_show_fullscreen_message_and_wait_P(_T(MSG_PLACE_STEEL_SHEET));
2793+
bool sampled = true;
2794+
// make some space for the sheet
2795+
// Avoid calling raise_z(), because a false triggering stallguard may prevent the Z from moving.
2796+
// The extruder then may ram the sheet hard if not going down from some ~150mm height
2797+
current_position[Z_AXIS] = 0.F;
2798+
destination[Z_AXIS] = 150.F;
2799+
plan_buffer_line_destinationXYZE(homing_feedrate[Z_AXIS] / 60);
27972800

2798-
// Sample Z heights for the mesh bed leveling.
2799-
// In addition, store the results into an eeprom, to be used later for verification of the bed leveling process.
2800-
if (!sample_mesh_and_store_reference()) sampled = false;
2801+
lcd_show_fullscreen_message_and_wait_P(_T(MSG_PLACE_STEEL_SHEET));
28012802

2802-
return sampled;
2803+
// Sample Z heights for the mesh bed leveling.
2804+
// In addition, store the results into an eeprom, to be used later for verification of the bed leveling process.
2805+
if (!sample_mesh_and_store_reference())
2806+
sampled = false;
2807+
2808+
return sampled;
28032809
}
28042810

28052811
void go_home_with_z_lift()

0 commit comments

Comments
 (0)