Browse Source

Patch for M240

pull/1/head
Scott Lahteine 6 years ago
parent
commit
ab2816c870
  1. 2
      Marlin/src/gcode/feature/camera/M240.cpp

2
Marlin/src/gcode/feature/camera/M240.cpp

@ -94,7 +94,7 @@ void GcodeSuite::M240() {
constexpr float photo_position[XYZ] = PHOTO_POSITION;
float raw[XYZ] = {
parser.seenval('X') ? RAW_X_POSITION(parser.value_linear_units()) : photo_position[X_AXIS],
parser.seenval('Y') ? RAW_Y_POSITION(parser.value_linear_units()) : photo_position[X_AXIS],
parser.seenval('Y') ? RAW_Y_POSITION(parser.value_linear_units()) : photo_position[Y_AXIS],
(parser.seenval('Z') ? parser.value_linear_units() : photo_position[Z_AXIS]) + current_position[Z_AXIS]
};
clamp_to_software_endstops(raw);

Loading…
Cancel
Save