Browse Source

General cleanup, apply const

Scott Lahteine 7 years ago
parent
commit
8e808fcadc
2 changed files with 10 additions and 10 deletions
  1. 8
    8
      Marlin/Marlin_main.cpp
  2. 2
    2
      Marlin/ultralcd_impl_HD44780.h

+ 8
- 8
Marlin/Marlin_main.cpp View File

10509
                                     + (tmp_extruder == 0 ? -(PARKING_EXTRUDER_GRAB_DISTANCE) : PARKING_EXTRUDER_GRAB_DISTANCE);
10509
                                     + (tmp_extruder == 0 ? -(PARKING_EXTRUDER_GRAB_DISTANCE) : PARKING_EXTRUDER_GRAB_DISTANCE);
10510
               /**
10510
               /**
10511
                *  Steps:
10511
                *  Steps:
10512
-               *    1. raise Z-Axis to have enough clearance
10513
-               *    2. move to park poition of old extruder
10514
-               *    3. disengage magnetc field, wait for delay
10515
-               *    4. move near new extruder
10516
-               *    5. engage magnetic field for new extruder
10517
-               *    6. move to parking incl. offset of new extruder
10518
-               *    7. lower Z-Axis
10512
+               *    1. Raise Z-Axis to give enough clearance
10513
+               *    2. Move to park position of old extruder
10514
+               *    3. Disengage magnetic field, wait for delay
10515
+               *    4. Move near new extruder
10516
+               *    5. Engage magnetic field for new extruder
10517
+               *    6. Move to parking incl. offset of new extruder
10518
+               *    7. Lower Z-Axis
10519
                */
10519
                */
10520
 
10520
 
10521
               // STEP 1
10521
               // STEP 1
10797
  *   F[units/min] Set the movement feedrate
10797
  *   F[units/min] Set the movement feedrate
10798
  *   S1           Don't move the tool in XY after change
10798
  *   S1           Don't move the tool in XY after change
10799
  */
10799
  */
10800
-inline void gcode_T(uint8_t tmp_extruder) {
10800
+inline void gcode_T(const uint8_t tmp_extruder) {
10801
 
10801
 
10802
   #if ENABLED(DEBUG_LEVELING_FEATURE)
10802
   #if ENABLED(DEBUG_LEVELING_FEATURE)
10803
     if (DEBUGGING(LEVELING)) {
10803
     if (DEBUGGING(LEVELING)) {

+ 2
- 2
Marlin/ultralcd_impl_HD44780.h View File

1145
       return ret_val;
1145
       return ret_val;
1146
     }
1146
     }
1147
 
1147
 
1148
-    coordinate pixel_location(uint8_t x, uint8_t y) { return pixel_location((int16_t)x, (int16_t)y); }
1148
+    inline coordinate pixel_location(const uint8_t x, const uint8_t y) { return pixel_location((int16_t)x, (int16_t)y); }
1149
 
1149
 
1150
-    void lcd_implementation_ubl_plot(uint8_t x, uint8_t inverted_y) {
1150
+    void lcd_implementation_ubl_plot(const uint8_t x, const uint8_t inverted_y) {
1151
 
1151
 
1152
       #if LCD_WIDTH >= 20
1152
       #if LCD_WIDTH >= 20
1153
         #define _LCD_W_POS 12
1153
         #define _LCD_W_POS 12

Loading…
Cancel
Save