Sanity-check NOZZLE_PARK_POINT
This commit is contained in:
parent
8e8e1c0d2b
commit
4b647a1025
@ -161,9 +161,11 @@
|
|||||||
|
|
||||||
#if ENABLED(NOZZLE_PARK_FEATURE)
|
#if ENABLED(NOZZLE_PARK_FEATURE)
|
||||||
|
|
||||||
void Nozzle::park(const uint8_t &z_action, const point_t &park /*= NOZZLE_PARK_POINT*/) {
|
constexpr float npp[] = NOZZLE_PARK_POINT;
|
||||||
const float fr_xy = NOZZLE_PARK_XY_FEEDRATE;
|
static_assert(COUNT(npp) == XYZ, "NOZZLE_PARK_POINT requires X, Y, and Z values.");
|
||||||
const float fr_z = NOZZLE_PARK_Z_FEEDRATE;
|
|
||||||
|
void Nozzle::park(const uint8_t &z_action, const point_t &park/*=NOZZLE_PARK_POINT*/) {
|
||||||
|
const float fr_xy = NOZZLE_PARK_XY_FEEDRATE, fr_z = NOZZLE_PARK_Z_FEEDRATE;
|
||||||
|
|
||||||
switch (z_action) {
|
switch (z_action) {
|
||||||
case 1: // Go to Z-park height
|
case 1: // Go to Z-park height
|
||||||
|
Loading…
Reference in New Issue
Block a user