Skip to content

Commit

Permalink
Update G29.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
InsanityAutomation committed Sep 19, 2020
1 parent d89bfd2 commit 4d72284
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/gcode/bedlevel/abl/G29.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ G29_TYPE GcodeSuite::G29() {
G29_RETURN(false);
}

const float rx = parser.linearval('X', NAN),
ry = parser.linearval('Y', NAN);
const float rx = RAW_X_POSITION(parser.linearval('X', NAN)),
ry = RAW_Y_POSITION(parser.linearval('Y', NAN));
int8_t i = parser.byteval('I', -1), j = parser.byteval('J', -1);

if (!isnan(rx) && !isnan(ry)) {
Expand Down

0 comments on commit 4d72284

Please sign in to comment.