Update Marlin_main.cpp

Fix use of removed function
This commit is contained in:
vintagepc 2023-02-17 08:31:27 -05:00 committed by GitHub
parent 20eef890a6
commit 032d5ebe5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -7737,7 +7737,7 @@ Sigma_Exit:
break; break;
} }
if (code_seen('Z')){ if (code_seen('Z')){
z_val = code_value_float(); z_val = code_value();
zraw = z_val*cs.axis_steps_per_unit[Z_AXIS]; zraw = z_val*cs.axis_steps_per_unit[Z_AXIS];
if ((zraw < Z_BABYSTEP_MIN) || (zraw > Z_BABYSTEP_MAX)) if ((zraw < Z_BABYSTEP_MIN) || (zraw > Z_BABYSTEP_MAX))
{ {