Scott Lahteine 6 years ago
parent
commit
0b1d754e7d
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/Marlin_main.cpp

+ 3
- 3
Marlin/Marlin_main.cpp View File

68
  * G32  - Undock sled (Z_PROBE_SLED only)
68
  * G32  - Undock sled (Z_PROBE_SLED only)
69
  * G33  - Delta Auto-Calibration (Requires DELTA_AUTO_CALIBRATION)
69
  * G33  - Delta Auto-Calibration (Requires DELTA_AUTO_CALIBRATION)
70
  * G38  - Probe in any direction using the Z_MIN_PROBE (Requires G38_PROBE_TARGET)
70
  * G38  - Probe in any direction using the Z_MIN_PROBE (Requires G38_PROBE_TARGET)
71
- * G42  - Coordinated move to a mesh point (Requires AUTO_BED_LEVELING_UBL)
71
+ * G42  - Coordinated move to a mesh point (Requires MESH_BED_LEVELING, AUTO_BED_LEVELING_BLINEAR, or AUTO_BED_LEVELING_UBL)
72
  * G90  - Use Absolute Coordinates
72
  * G90  - Use Absolute Coordinates
73
  * G91  - Use Relative Coordinates
73
  * G91  - Use Relative Coordinates
74
  * G92  - Set current position to coordinates given
74
  * G92  - Set current position to coordinates given
6188
 
6188
 
6189
     if (IsRunning()) {
6189
     if (IsRunning()) {
6190
       const bool hasI = parser.seenval('I');
6190
       const bool hasI = parser.seenval('I');
6191
-      const int8_t ix = RAW_X_POSITION(hasI ? parser.value_linear_units() : 0);
6191
+      const int8_t ix = hasI ? parser.value_int() : 0;
6192
       const bool hasJ = parser.seenval('J');
6192
       const bool hasJ = parser.seenval('J');
6193
-      const int8_t iy = RAW_Y_POSITION(hasJ ? parser.value_linear_units() : 0);
6193
+      const int8_t iy = hasJ ? parser.value_int() : 0;
6194
 
6194
 
6195
       if ((hasI && !WITHIN(ix, 0, GRID_MAX_POINTS_X - 1)) || (hasJ && !WITHIN(iy, 0, GRID_MAX_POINTS_Y - 1))) {
6195
       if ((hasI && !WITHIN(ix, 0, GRID_MAX_POINTS_X - 1)) || (hasJ && !WITHIN(iy, 0, GRID_MAX_POINTS_Y - 1))) {
6196
         SERIAL_ECHOLNPGM(MSG_ERR_MESH_XY);
6196
         SERIAL_ECHOLNPGM(MSG_ERR_MESH_XY);

Loading…
Cancel
Save