MCPcopy Create free account
hub / github.com/MarlinFirmware/Marlin / homing_needed_error

Function homing_needed_error

Marlin/src/module/motion.cpp:1971–1986  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1969 }
1970
1971 bool homing_needed_error(main_axes_bits_t axis_bits/*=main_axes_mask*/) {
1972 if (!(axis_bits &= axes_should_home(axis_bits))) return false;
1973
1974 char all_axes[] = STR_AXES_MAIN, need[NUM_AXES + 1];
1975 uint8_t n = 0;
1976 LOOP_NUM_AXES(i) if (TEST(axis_bits, i)) need[n++] = all_axes[i];
1977 need[n] = '\0';
1978
1979 SString<30> msg;
1980 msg.setf(GET_EN_TEXT_F(MSG_HOME_FIRST), need);
1981 SERIAL_ECHO_START();
1982 msg.echoln();
1983
1984 ui.status_printf(0, GET_TEXT_F(MSG_HOME_FIRST), need);
1985 return true;
1986 }
1987
1988 /**
1989 * Homing bump feedrate (mm/s)

Callers

nothing calls this directly

Calls 4

SERIAL_ECHO_STARTFunction · 0.85
status_printfMethod · 0.80
axes_should_homeFunction · 0.70
LOOP_NUM_AXESFunction · 0.70

Tested by

no test coverage detected