Skip to content
This repository was archived by the owner on Nov 18, 2023. It is now read-only.

Commit e0b413c

Browse files
committed
Add set_all_homed
1 parent a12ac5e commit e0b413c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Marlin/src/feature/powerloss.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ void PrintJobRecovery::resume() {
365365
#endif
366366

367367
// Pretend that all axes are homed
368-
axis_homed = axis_known_position = xyz_bits;
368+
set_all_homed();
369369

370370
// Recover volumetric extrusion state
371371
#if DISABLED(NO_VOLUMETRICS)

Marlin/src/module/motion.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ constexpr uint8_t xyz_bits = _BV(X_AXIS) | _BV(Y_AXIS) | _BV(Z_AXIS);
4040
FORCE_INLINE bool no_axes_homed() { return !axis_homed; }
4141
FORCE_INLINE bool all_axes_homed() { return (axis_homed & xyz_bits) == xyz_bits; }
4242
FORCE_INLINE bool all_axes_known() { return (axis_known_position & xyz_bits) == xyz_bits; }
43+
FORCE_INLINE void set_all_homed() { axis_homed = axis_known_position = xyz_bits; }
4344
FORCE_INLINE void set_all_unhomed() { axis_homed = axis_known_position = 0; }
4445

4546
FORCE_INLINE bool homing_needed() {

0 commit comments

Comments
 (0)