Sfoglia il codice sorgente

Clean up excess whitespace, comment formatting

Scott Lahteine 7 anni fa
parent
commit
0a8e09c723

+ 28
- 28
Marlin/Marlin_main.cpp Vedi File

@@ -2065,7 +2065,7 @@ static void clean_up_after_endstop_or_probe_move() {
2065 2065
       safe_delay(BLTOUCH_DELAY);
2066 2066
     }
2067 2067
 
2068
-    // 
2068
+    //
2069 2069
     // The BL-Touch probes have a HAL effect sensor.  The high currents switching
2070 2070
     // on and off cause big magnetic fields that can affect the repeatability of the
2071 2071
     // sensor.  So, for BL-Touch probes, we turn off the heaters during the actual probe.
@@ -2075,7 +2075,7 @@ static void clean_up_after_endstop_or_probe_move() {
2075 2075
     void turn_heaters_on_or_off_for_bltouch(const bool deploy) {
2076 2076
       static int8_t bltouch_recursion_cnt=0;
2077 2077
       static millis_t last_emi_protection=0;
2078
-      static float temps_at_entry[HOTENDS]; 
2078
+      static float temps_at_entry[HOTENDS];
2079 2079
       #if HAS_TEMP_BED
2080 2080
         static float bed_temp_at_entry;
2081 2081
       #endif
@@ -2088,19 +2088,19 @@ static void clean_up_after_endstop_or_probe_move() {
2088 2088
       if (deploy) {
2089 2089
         bltouch_recursion_cnt++;
2090 2090
         last_emi_protection = millis();
2091
-        HOTEND_LOOP() temps_at_entry[e] = thermalManager.degTargetHotend(e);        // save the current target temperatures 
2091
+        HOTEND_LOOP() temps_at_entry[e] = thermalManager.degTargetHotend(e);        // save the current target temperatures
2092 2092
         HOTEND_LOOP() thermalManager.setTargetHotend(0, e);                         // so we know what to restore them to.
2093 2093
 
2094 2094
         #if HAS_TEMP_BED
2095 2095
           bed_temp_at_entry = thermalManager.degTargetBed();
2096 2096
           thermalManager.setTargetBed(0.0);
2097 2097
         #endif
2098
-      } 
2098
+      }
2099 2099
       else {
2100 2100
         bltouch_recursion_cnt--;                                                    // the heaters are only turned back on
2101 2101
 	if (bltouch_recursion_cnt==0 && ((last_emi_protection+20000L)>millis())) {  // if everything is perfect.  It is expected
2102
-          HOTEND_LOOP() thermalManager.setTargetHotend(temps_at_entry[e], e);       // that the bltouch_recursion_cnt is zero and 
2103
-          #if HAS_TEMP_BED                                                          // that the heaters were shut off less than 
2102
+          HOTEND_LOOP() thermalManager.setTargetHotend(temps_at_entry[e], e);       // that the bltouch_recursion_cnt is zero and
2103
+          #if HAS_TEMP_BED                                                          // that the heaters were shut off less than
2104 2104
             thermalManager.setTargetBed(bed_temp_at_entry);                         // 20 seconds ago
2105 2105
           #endif
2106 2106
         }
@@ -2113,12 +2113,12 @@ static void clean_up_after_endstop_or_probe_move() {
2113 2113
         turn_heaters_on_or_off_for_bltouch(deploy);
2114 2114
       #endif
2115 2115
       if (deploy && TEST_BLTOUCH()) {      // If BL-Touch says it's triggered
2116
-        bltouch_command(BLTOUCH_RESET);    // try to reset it.
2116
+        bltouch_command(BLTOUCH_RESET);    //  try to reset it.
2117 2117
         bltouch_command(BLTOUCH_DEPLOY);   // Also needs to deploy and stow to
2118
-        bltouch_command(BLTOUCH_STOW);     // clear the triggered condition.
2119
-        safe_delay(1500);                  // wait for internal self test to complete
2120
-                                           //   measured completion time was 0.65 seconds
2121
-                                           //   after reset, deploy & stow sequence
2118
+        bltouch_command(BLTOUCH_STOW);     //  clear the triggered condition.
2119
+        safe_delay(1500);                  // Wait for internal self-test to complete.
2120
+                                           //  (Measured completion time was 0.65 seconds
2121
+                                           //   after reset, deploy, and stow sequence)
2122 2122
         if (TEST_BLTOUCH()) {              // If it still claims to be triggered...
2123 2123
           SERIAL_ERROR_START;
2124 2124
           SERIAL_ERRORLNPGM(MSG_STOP_BLTOUCH);
@@ -2328,15 +2328,15 @@ static void clean_up_after_endstop_or_probe_move() {
2328 2328
     return current_position[Z_AXIS] + zprobe_zoffset;
2329 2329
   }
2330 2330
 
2331
-  //
2332
-  // - Move to the given XY
2333
-  // - Deploy the probe, if not already deployed
2334
-  // - Probe the bed, get the Z position
2335
-  // - Depending on the 'stow' flag
2336
-  //   - Stow the probe, or
2337
-  //   - Raise to the BETWEEN height
2338
-  // - Return the probed Z position
2339
-  //
2331
+  /**
2332
+   * - Move to the given XY
2333
+   * - Deploy the probe, if not already deployed
2334
+   * - Probe the bed, get the Z position
2335
+   * - Depending on the 'stow' flag
2336
+   *   - Stow the probe, or
2337
+   *   - Raise to the BETWEEN height
2338
+   * - Return the probed Z position
2339
+   */
2340 2340
   float probe_pt(const float x, const float y, const bool stow/*=true*/, const int verbose_level/*=1*/) {
2341 2341
     #if ENABLED(DEBUG_LEVELING_FEATURE)
2342 2342
       if (DEBUGGING(LEVELING)) {
@@ -2505,14 +2505,14 @@ static void clean_up_after_endstop_or_probe_move() {
2505 2505
 
2506 2506
 #if ENABLED(AUTO_BED_LEVELING_BILINEAR) || ENABLED(MESH_BED_LEVELING)
2507 2507
 
2508
-  //
2509
-  // Enable if you prefer your output in JSON format
2510
-  // suitable for SCAD or JavaScript mesh visualizers.
2511
-  //
2512
-  // Visualize meshes in OpenSCAD using the included script.
2513
-  //
2514
-  //   buildroot/shared/scripts/MarlinMesh.scad
2515
-  //
2508
+  /**
2509
+   * Enable to produce output in JSON format suitable
2510
+   * for SCAD or JavaScript mesh visualizers.
2511
+   *
2512
+   * Visualize meshes in OpenSCAD using the included script.
2513
+   *
2514
+   *   buildroot/shared/scripts/MarlinMesh.scad
2515
+   */
2516 2516
   //#define SCAD_MESH_OUTPUT
2517 2517
 
2518 2518
   /**

+ 2
- 3
Marlin/example_configurations/FolgerTech-i3-2020/Configuration.h Vedi File

@@ -316,8 +316,7 @@
316 316
   #define K1 0.95 //smoothing factor within the PID
317 317
 
318 318
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
319
-  
320
-    
319
+
321 320
   // FolgerTech i3-2020
322 321
   #define  DEFAULT_Kp 11.50
323 322
   #define  DEFAULT_Ki 0.50
@@ -921,7 +920,7 @@
921 920
     #define UBL_MESH_INSET 1         // Mesh inset margin on print area
922 921
     #define GRID_MAX_POINTS_X 10     // Don't use more than 15 points per axis, implementation limited.
923 922
     #define GRID_MAX_POINTS_Y 10
924
-    #define UBL_PROBE_PT_1_X 45    // These set the probe locations for when UBL does a 3-Point leveling	
923
+    #define UBL_PROBE_PT_1_X 45    // These set the probe locations for when UBL does a 3-Point leveling
925 924
     #define UBL_PROBE_PT_1_Y 170   // of the mesh.
926 925
     #define UBL_PROBE_PT_2_X 45
927 926
     #define UBL_PROBE_PT_2_Y 25

+ 7
- 7
Marlin/example_configurations/gCreate_gMax1.5+/Configuration.h Vedi File

@@ -133,8 +133,8 @@
133 133
 //#define MOTHERBOARD BOARD_RAMPS_14_EEF
134 134
   #define MOTHERBOARD BOARD_RAMPS_14_EFB       // gMax users please note:  This is a Roxy modification.   I print on glass and
135 135
                                                // I use Marlin to control the bed's temperature.  So, if you have a single nozzle
136
-                                               // machine, this will work fine for you.  You just set the 
137
-                                               // #define TEMP_SENSOR_BED 75 to 0 down below so Marlin doesn't mess with the bed 
136
+                                               // machine, this will work fine for you.  You just set the
137
+                                               // #define TEMP_SENSOR_BED 75 to 0 down below so Marlin doesn't mess with the bed
138 138
                                                // temp.
139 139
 #endif
140 140
 
@@ -261,8 +261,8 @@
261 261
 #define TEMP_SENSOR_3 0
262 262
 #define TEMP_SENSOR_4 0
263 263
 #define TEMP_SENSOR_BED 75   // gMax-1.5+ users please note:   This is a Roxy modification to the printer.   I want
264
-                             // to print on glass.   And I'm using a 400mm x 400mm silicon heat pad powered through 
265
-                             // a Fortek SSR to do it.   If you are using an unaltered gCreate machine, this needs 
264
+                             // to print on glass.   And I'm using a 400mm x 400mm silicon heat pad powered through
265
+                             // a Fortek SSR to do it.   If you are using an unaltered gCreate machine, this needs
266 266
                              // to be set to 0
267 267
 
268 268
 // Dummy thermistor constant temperature readings, for use with 998 and 999
@@ -325,12 +325,12 @@
325 325
   #define K1 0.95 //smoothing factor within the PID
326 326
 
327 327
   // If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
328
-  
328
+
329 329
   // gMax J-Head
330 330
     #define  DEFAULT_Kp 15.35
331 331
     #define  DEFAULT_Ki 0.85
332 332
     #define  DEFAULT_Kd 69.45
333
-    
333
+
334 334
   // Ultimaker
335 335
 //  #define  DEFAULT_Kp 22.2
336 336
 //  #define  DEFAULT_Ki 1.08
@@ -793,7 +793,7 @@
793 793
 #define Y_MIN_POS 0
794 794
 #define Z_MIN_POS 0
795 795
 #define X_MAX_POS 420		// These numbers are not accurate for an unaltered gMax 1.5+ printer.  My print bed
796
-#define Y_MAX_POS 420		// is inset a noticable amount from the edge of the bed.  Combined with the inset, 
796
+#define Y_MAX_POS 420		// is inset a noticable amount from the edge of the bed.  Combined with the inset,
797 797
                                 // the nozzle can reach all cordinates of the mesh.
798 798
 #define Z_MAX_POS 500
799 799
 

+ 1
- 1
Marlin/language_tr.h Vedi File

@@ -233,7 +233,7 @@
233 233
 #define MSG_FILAMENT_CHANGE_OPTION_EXTRUDE  _UxGT("Daha Akıt")                                          // Daha Akıt
234 234
 #define MSG_FILAMENT_CHANGE_OPTION_RESUME   _UxGT("Baskıyı sürdür")                                     // Baskıyı sürdür
235 235
 #define MSG_FILAMENT_CHANGE_MINTEMP         _UxGT("Min. Sıcaklık")                                      // Min. Sıcaklık:
236
-#define MSG_FILAMENT_CHANGE_NOZZLE          _UxGT("  Nozül: ")                                          //   Nozül: 
236
+#define MSG_FILAMENT_CHANGE_NOZZLE          _UxGT("  Nozül: ")                                          //   Nozül:
237 237
 
238 238
 #if LCD_HEIGHT >= 4
239 239
   // Up to 3 lines allowed

+ 6
- 6
Marlin/softspi.h Vedi File

@@ -19,11 +19,11 @@ bool fastDigitalRead(uint8_t pin) {
19 19
  */
20 20
 static inline __attribute__((always_inline))
21 21
 void fastDigitalWrite(uint8_t pin, bool value) {
22
-	if (value) {
23
-		*portSetRegister(pin) = 1;
24
-	} else {
25
-		*portClearRegister(pin) = 1;
26
-	}
22
+  if (value) {
23
+    *portSetRegister(pin) = 1;
24
+  } else {
25
+    *portClearRegister(pin) = 1;
26
+  }
27 27
 }
28 28
 #else  // CORE_TEENSY
29 29
 //------------------------------------------------------------------------------
@@ -574,7 +574,7 @@ class DigitalPin {
574 574
   /** Parenthesis operator
575 575
    * @return Pin's level
576 576
    */
577
-	inline operator bool () const __attribute__((always_inline)) {
577
+  inline operator bool () const __attribute__((always_inline)) {
578 578
     return read();
579 579
   }
580 580
   //----------------------------------------------------------------------------

+ 32
- 33
Marlin/ubl_G29.cpp Vedi File

@@ -50,11 +50,10 @@
50 50
   extern bool code_has_value();
51 51
   extern float probe_pt(float x, float y, bool, int);
52 52
   extern bool set_probe_deployed(bool);
53
-  void smart_fill_mesh();  
53
+  void smart_fill_mesh();
54 54
 
55 55
   bool ProbeStay = true;
56 56
 
57
-
58 57
   #define SIZE_OF_LITTLE_RAISE 0
59 58
   #define BIG_RAISE_NOT_NEEDED 0
60 59
   extern void lcd_quick_feedback();
@@ -189,13 +188,13 @@
189 188
    *   P3    Phase 3    Fill the unpopulated regions of the Mesh with a fixed value. There are two different paths the
190 189
    *                    user can go down.  If the user specifies the value using the C parameter, the closest invalid
191 190
    *                    mesh points to the nozzle will be filled.   The user can specify a repeat count using the R
192
-   *                    parameter with the C version of the command. 
191
+   *                    parameter with the C version of the command.
193 192
    *
194
-   *                    A second version of the fill command is available if no C constant is specified.  Not 
193
+   *                    A second version of the fill command is available if no C constant is specified.  Not
195 194
    *                    specifying a C constant will invoke the 'Smart Fill' algorithm.  The G29 P3 command will search
196 195
    *                    from the edges of the mesh inward looking for invalid mesh points.  It will look at the next
197 196
    *                    several mesh points to determine if the print bed is sloped up or down.  If the bed is sloped
198
-   *                    upward from the invalid mesh point, it will be replaced with the value of the nearest mesh point. 
197
+   *                    upward from the invalid mesh point, it will be replaced with the value of the nearest mesh point.
199 198
    *                    If the bed is sloped downward from the invalid mesh point, it will be replaced with a value that
200 199
    *                    puts all three points in a line.   The second version of the G29 P3 command is a quick, easy and
201 200
    *                    usually safe way to populate the unprobed regions of your mesh so you can continue to the G26
@@ -336,7 +335,7 @@
336 335
       repetition_cnt = code_has_value() ? code_value_int() : 1;
337 336
       while (repetition_cnt--) {
338 337
         if (cnt > 20) { cnt = 0; idle(); }
339
-        const mesh_index_pair location = find_closest_mesh_point_of_type(REAL, x_pos, y_pos, USE_NOZZLE_AS_REFERENCE, NULL, false); 
338
+        const mesh_index_pair location = find_closest_mesh_point_of_type(REAL, x_pos, y_pos, USE_NOZZLE_AS_REFERENCE, NULL, false);
340 339
         if (location.x_index < 0) {
341 340
           SERIAL_PROTOCOLLNPGM("Entire Mesh invalidated.\n");
342 341
           break;            // No more invalid Mesh Points to populate
@@ -460,7 +459,7 @@
460 459
 
461 460
         case 3: {
462 461
           //
463
-          // Populate invalid Mesh areas.  Two choices are available to the user.  The user can 
462
+          // Populate invalid Mesh areas.  Two choices are available to the user.  The user can
464 463
           // specify the constant to be used with a C # paramter.   Or the user can allow the G29 P3 command to
465 464
           // apply a 'reasonable' constant to the invalid mesh point.  Some caution and scrutiny should be used
466 465
           // on either of these paths!
@@ -811,9 +810,9 @@
811 810
      * Z is negative, we need to invert the sign of all components of the vector
812 811
      */
813 812
     if ( normal.z < 0.0 ) {
814
-      normal.x = -normal.x; 
815
-      normal.y = -normal.y; 
816
-      normal.z = -normal.z; 
813
+      normal.x = -normal.x;
814
+      normal.y = -normal.y;
815
+      normal.z = -normal.z;
817 816
     }
818 817
 
819 818
     rotation = matrix_3x3::create_look_at( vector_3( normal.x,  normal.y, 1));
@@ -863,7 +862,7 @@
863 862
     for (i = 0; i < GRID_MAX_POINTS_X; i++) {
864 863
       for (j = 0; j < GRID_MAX_POINTS_Y; j++) {
865 864
         float x_tmp, y_tmp, z_tmp;
866
-          x_tmp = pgm_read_float(ubl.mesh_index_to_xpos[i]); 
865
+          x_tmp = pgm_read_float(ubl.mesh_index_to_xpos[i]);
867 866
           y_tmp = pgm_read_float(ubl.mesh_index_to_ypos[j]);
868 867
           z_tmp = ubl.z_values[i][j];
869 868
           #if ENABLED(DEBUG_LEVELING_FEATURE)
@@ -947,7 +946,7 @@
947 946
     float last_x = -9999.99, last_y = -9999.99;
948 947
     mesh_index_pair location;
949 948
     do {
950
-      location = find_closest_mesh_point_of_type(INVALID, lx, ly, USE_NOZZLE_AS_REFERENCE, NULL, false); 
949
+      location = find_closest_mesh_point_of_type(INVALID, lx, ly, USE_NOZZLE_AS_REFERENCE, NULL, false);
951 950
       // It doesn't matter if the probe can't reach the NAN location. This is a manual probe.
952 951
       if (location.x_index < 0 && location.y_index < 0) continue;
953 952
 
@@ -1415,7 +1414,7 @@
1415 1414
     do_blocking_move_to_z(Z_CLEARANCE_DEPLOY_PROBE);
1416 1415
     do_blocking_move_to_xy(lx, ly);
1417 1416
     do {
1418
-      location = find_closest_mesh_point_of_type(SET_IN_BITMAP, lx, ly, USE_NOZZLE_AS_REFERENCE, not_done, false); 
1417
+      location = find_closest_mesh_point_of_type(SET_IN_BITMAP, lx, ly, USE_NOZZLE_AS_REFERENCE, not_done, false);
1419 1418
                                                                                               // It doesn't matter if the probe can not reach this
1420 1419
                                                                                               // location. This is a manual edit of the Mesh Point.
1421 1420
       if (location.x_index < 0 && location.y_index < 0) continue; // abort if we can't find any more points.
@@ -1500,7 +1499,7 @@
1500 1499
   }
1501 1500
 
1502 1501
   //
1503
-  // The routine provides the 'Smart Fill' capability.  It scans from the 
1502
+  // The routine provides the 'Smart Fill' capability.  It scans from the
1504 1503
   // outward edges of the mesh towards the center.  If it finds an invalid
1505 1504
   // location, it uses the next two points (assumming they are valid) to
1506 1505
   // calculate a 'reasonable' value for the unprobed mesh point.
@@ -1510,14 +1509,14 @@
1510 1509
     for (uint8_t x = 0; x < GRID_MAX_POINTS_X; x++) {             // Bottom of the mesh looking up
1511 1510
       for (uint8_t y = 0; y < GRID_MAX_POINTS_Y-2; y++) {
1512 1511
         if (isnan(ubl.z_values[x][y])) {
1513
-          if (isnan(ubl.z_values[x][y+1]))                        // we only deal with the first NAN next to a block of 
1512
+          if (isnan(ubl.z_values[x][y+1]))                        // we only deal with the first NAN next to a block of
1514 1513
             continue;                                             // good numbers.  we want 2 good numbers to extrapolate off of.
1515
-          if (isnan(ubl.z_values[x][y+2]))  
1516
-            continue;                      
1514
+          if (isnan(ubl.z_values[x][y+2]))
1515
+            continue;
1517 1516
           if (ubl.z_values[x][y+1] < ubl.z_values[x][y+2])        // The bed is angled down near this edge. So to be safe, we
1518 1517
             ubl.z_values[x][y] = ubl.z_values[x][y+1];            // use the closest value, which is probably a little too high
1519 1518
           else {
1520
-            diff = ubl.z_values[x][y+1] - ubl.z_values[x][y+2];   // The bed is angled up near this edge. So we will use the closest 
1519
+            diff = ubl.z_values[x][y+1] - ubl.z_values[x][y+2];   // The bed is angled up near this edge. So we will use the closest
1521 1520
             ubl.z_values[x][y] = ubl.z_values[x][y+1] + diff;     // height and add in the difference between that and the next point
1522 1521
           }
1523 1522
           break;
@@ -1527,14 +1526,14 @@
1527 1526
     for (uint8_t x = 0; x < GRID_MAX_POINTS_X; x++) {             // Top of the mesh looking down
1528 1527
       for (uint8_t y=GRID_MAX_POINTS_Y-1; y>=1; y--) {
1529 1528
         if (isnan(ubl.z_values[x][y])) {
1530
-          if (isnan(ubl.z_values[x][y-1]))                        // we only deal with the first NAN next to a block of 
1529
+          if (isnan(ubl.z_values[x][y-1]))                        // we only deal with the first NAN next to a block of
1531 1530
             continue;                                             // good numbers.  we want 2 good numbers to extrapolate off of.
1532
-          if (isnan(ubl.z_values[x][y-2]))  
1533
-            continue;                      
1531
+          if (isnan(ubl.z_values[x][y-2]))
1532
+            continue;
1534 1533
           if (ubl.z_values[x][y-1] < ubl.z_values[x][y-2])        // The bed is angled down near this edge. So to be safe, we
1535 1534
             ubl.z_values[x][y] = ubl.z_values[x][y-1];            // use the closest value, which is probably a little too high
1536 1535
           else {
1537
-            diff = ubl.z_values[x][y-1] - ubl.z_values[x][y-2];   // The bed is angled up near this edge. So we will use the closest 
1536
+            diff = ubl.z_values[x][y-1] - ubl.z_values[x][y-2];   // The bed is angled up near this edge. So we will use the closest
1538 1537
             ubl.z_values[x][y] = ubl.z_values[x][y-1] + diff;     // height and add in the difference between that and the next point
1539 1538
           }
1540 1539
           break;
@@ -1544,14 +1543,14 @@
1544 1543
     for (uint8_t y = 0; y < GRID_MAX_POINTS_Y; y++) {
1545 1544
       for (uint8_t x = 0; x < GRID_MAX_POINTS_X-2; x++) {         // Left side of the mesh looking right
1546 1545
         if (isnan(ubl.z_values[x][y])) {
1547
-          if (isnan(ubl.z_values[x+1][y]))                        // we only deal with the first NAN next to a block of 
1546
+          if (isnan(ubl.z_values[x+1][y]))                        // we only deal with the first NAN next to a block of
1548 1547
             continue;                                             // good numbers.  we want 2 good numbers to extrapolate off of.
1549
-          if (isnan(ubl.z_values[x+2][y]))  
1550
-            continue;                      
1548
+          if (isnan(ubl.z_values[x+2][y]))
1549
+            continue;
1551 1550
           if (ubl.z_values[x+1][y] < ubl.z_values[x+2][y])        // The bed is angled down near this edge. So to be safe, we
1552 1551
             ubl.z_values[x][y] = ubl.z_values[x][y+1];            // use the closest value, which is probably a little too high
1553 1552
           else {
1554
-            diff = ubl.z_values[x+1][y] - ubl.z_values[x+2][y];   // The bed is angled up near this edge. So we will use the closest 
1553
+            diff = ubl.z_values[x+1][y] - ubl.z_values[x+2][y];   // The bed is angled up near this edge. So we will use the closest
1555 1554
             ubl.z_values[x][y] = ubl.z_values[x+1][y] + diff;     // height and add in the difference between that and the next point
1556 1555
           }
1557 1556
           break;
@@ -1561,18 +1560,18 @@
1561 1560
     for (uint8_t y=0; y < GRID_MAX_POINTS_Y; y++) {
1562 1561
       for (uint8_t x=GRID_MAX_POINTS_X-1; x>=1; x--) {            // Right side of the mesh looking left
1563 1562
         if (isnan(ubl.z_values[x][y])) {
1564
-          if (isnan(ubl.z_values[x-1][y]))                        // we only deal with the first NAN next to a block of 
1563
+          if (isnan(ubl.z_values[x-1][y]))                        // we only deal with the first NAN next to a block of
1565 1564
             continue;                                             // good numbers.  we want 2 good numbers to extrapolate off of.
1566
-          if (isnan(ubl.z_values[x-2][y]))  
1567
-            continue;                      
1565
+          if (isnan(ubl.z_values[x-2][y]))
1566
+            continue;
1568 1567
           if (ubl.z_values[x-1][y] < ubl.z_values[x-2][y])        // The bed is angled down near this edge. So to be safe, we
1569 1568
             ubl.z_values[x][y] = ubl.z_values[x-1][y];            // use the closest value, which is probably a little too high
1570 1569
           else {
1571
-            diff = ubl.z_values[x-1][y] - ubl.z_values[x-2][y];   // The bed is angled up near this edge. So we will use the closest 
1570
+            diff = ubl.z_values[x-1][y] - ubl.z_values[x-2][y];   // The bed is angled up near this edge. So we will use the closest
1572 1571
             ubl.z_values[x][y] = ubl.z_values[x-1][y] + diff;     // height and add in the difference between that and the next point
1573 1572
           }
1574 1573
           break;
1575
-        } 
1574
+        }
1576 1575
       }
1577 1576
     }
1578 1577
   }
@@ -1599,7 +1598,7 @@
1599 1598
     for(ix=0; ix<grid_size; ix++) {
1600 1599
       x = ((float)x_min) + ix*dx;
1601 1600
       for(iy=0; iy<grid_size; iy++) {
1602
-        if (zig_zag) 
1601
+        if (zig_zag)
1603 1602
           y = ((float)y_min) + (grid_size-iy-1)*dy;
1604 1603
         else
1605 1604
           y = ((float)y_min) + iy*dy;
@@ -1665,7 +1664,7 @@
1665 1664
     for (i = 0; i < GRID_MAX_POINTS_X; i++) {
1666 1665
       for (j = 0; j < GRID_MAX_POINTS_Y; j++) {
1667 1666
         float x_tmp, y_tmp, z_tmp;
1668
-          x_tmp = pgm_read_float(&(ubl.mesh_index_to_xpos[i])); 
1667
+          x_tmp = pgm_read_float(&(ubl.mesh_index_to_xpos[i]));
1669 1668
           y_tmp = pgm_read_float(&(ubl.mesh_index_to_ypos[j]));
1670 1669
           z_tmp = ubl.z_values[i][j];
1671 1670
           #if ENABLED(DEBUG_LEVELING_FEATURE)

+ 1
- 1
Marlin/ultralcd_impl_HD44780.h Vedi File

@@ -533,7 +533,7 @@ void lcd_print(char c) { charset_mapper(c); }
533 533
     lcd.clear();
534 534
 
535 535
     safe_delay(100);
536
-    
536
+
537 537
     lcd_set_custom_characters(
538 538
       #if ENABLED(LCD_PROGRESS_BAR)
539 539
         false

+ 1
- 1
Marlin/utility.cpp Vedi File

@@ -31,7 +31,7 @@ void safe_delay(millis_t ms) {
31 31
     thermalManager.manage_heater();
32 32
   }
33 33
   delay(ms);
34
-  thermalManager.manage_heater();	// This keeps us safe if too many small safe_delay() calls are made
34
+  thermalManager.manage_heater(); // This keeps us safe if too many small safe_delay() calls are made
35 35
 }
36 36
 
37 37
 #if ENABLED(ULTRA_LCD)

Loading…
Annulla
Salva