瀏覽代碼

General cleanup, apply const

Scott Lahteine 7 年之前
父節點
當前提交
8e808fcadc
共有 2 個文件被更改,包括 10 次插入10 次删除
  1. 8
    8
      Marlin/Marlin_main.cpp
  2. 2
    2
      Marlin/ultralcd_impl_HD44780.h

+ 8
- 8
Marlin/Marlin_main.cpp 查看文件

@@ -10509,13 +10509,13 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n
10509 10509
                                     + (tmp_extruder == 0 ? -(PARKING_EXTRUDER_GRAB_DISTANCE) : PARKING_EXTRUDER_GRAB_DISTANCE);
10510 10510
               /**
10511 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 10521
               // STEP 1
@@ -10797,7 +10797,7 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n
10797 10797
  *   F[units/min] Set the movement feedrate
10798 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 10802
   #if ENABLED(DEBUG_LEVELING_FEATURE)
10803 10803
     if (DEBUGGING(LEVELING)) {

+ 2
- 2
Marlin/ultralcd_impl_HD44780.h 查看文件

@@ -1145,9 +1145,9 @@ static void lcd_implementation_status_screen() {
1145 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 1152
       #if LCD_WIDTH >= 20
1153 1153
         #define _LCD_W_POS 12

Loading…
取消
儲存