Let M421 C select any point

Fixing #21147
This commit is contained in:
Scott Lahteine committed 2021-05-15 15:05:53 -05:00
1 parent 9fa9eebe51
commit 94edfc0a8f
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ void GcodeSuite::M421() {
hasZ = parser.seen('Z'),
hasQ = !hasZ && parser.seen('Q');
if (hasC) ij = ubl.find_closest_mesh_point_of_type(REAL, current_position);
if (hasC) ij = ubl.find_closest_mesh_point_of_type(CLOSEST, current_position);
if (int(hasC) + int(hasI && hasJ) != 1 || !(hasZ || hasQ || hasN))
SERIAL_ERROR_MSG(STR_ERR_M421_PARAMETERS);