Browse Source

little oops

LVD-AC 8 years ago
parent
commit
cafc48dff8
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/Marlin_main.cpp

+ 2
- 2
Marlin/Marlin_main.cpp View File

5152
         S2 += sq(z_at_pt[0]);
5152
         S2 += sq(z_at_pt[0]);
5153
         N++;
5153
         N++;
5154
         if (!pp_equals_1) // std dev from zero plane
5154
         if (!pp_equals_1) // std dev from zero plane
5155
-          for (uint8_t axis = 1; axis < 13; axis += (pp_equals_2 ? 4 : 2)) {
5155
+          for (uint8_t axis = (probe_mode == -2 ? 3 : 1); axis < 13; axis += (pp_equals_2 ? 4 : 2)) {
5156
             S1 += z_at_pt[axis];
5156
             S1 += z_at_pt[axis];
5157
             S2 += sq(z_at_pt[axis]);
5157
             S2 += sq(z_at_pt[axis]);
5158
             N++;
5158
             N++;
5324
           if (zero_std_dev >= test_precision)
5324
           if (zero_std_dev >= test_precision)
5325
             serialprintPGM(save_message);
5325
             serialprintPGM(save_message);
5326
             SERIAL_EOL;
5326
             SERIAL_EOL;
5327
-       }
5327
+        }
5328
         else {                                                       // forced end
5328
         else {                                                       // forced end
5329
           if (verbose_level == 0) {
5329
           if (verbose_level == 0) {
5330
             SERIAL_PROTOCOLPGM("End DRY-RUN");
5330
             SERIAL_PROTOCOLPGM("End DRY-RUN");

Loading…
Cancel
Save