General cleanup, apply const

This commit is contained in:
Scott Lahteine 2017-10-13 16:13:36 -05:00
parent da93a272a0
commit 8e808fcadc
2 changed files with 10 additions and 10 deletions

View File

@ -10509,13 +10509,13 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n
+ (tmp_extruder == 0 ? -(PARKING_EXTRUDER_GRAB_DISTANCE) : PARKING_EXTRUDER_GRAB_DISTANCE); + (tmp_extruder == 0 ? -(PARKING_EXTRUDER_GRAB_DISTANCE) : PARKING_EXTRUDER_GRAB_DISTANCE);
/** /**
* Steps: * Steps:
* 1. raise Z-Axis to have enough clearance * 1. Raise Z-Axis to give enough clearance
* 2. move to park poition of old extruder * 2. Move to park position of old extruder
* 3. disengage magnetc field, wait for delay * 3. Disengage magnetic field, wait for delay
* 4. move near new extruder * 4. Move near new extruder
* 5. engage magnetic field for new extruder * 5. Engage magnetic field for new extruder
* 6. move to parking incl. offset of new extruder * 6. Move to parking incl. offset of new extruder
* 7. lower Z-Axis * 7. Lower Z-Axis
*/ */
// STEP 1 // STEP 1
@ -10797,7 +10797,7 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n
* F[units/min] Set the movement feedrate * F[units/min] Set the movement feedrate
* S1 Don't move the tool in XY after change * S1 Don't move the tool in XY after change
*/ */
inline void gcode_T(uint8_t tmp_extruder) { inline void gcode_T(const uint8_t tmp_extruder) {
#if ENABLED(DEBUG_LEVELING_FEATURE) #if ENABLED(DEBUG_LEVELING_FEATURE)
if (DEBUGGING(LEVELING)) { if (DEBUGGING(LEVELING)) {

View File

@ -1145,9 +1145,9 @@ static void lcd_implementation_status_screen() {
return ret_val; return ret_val;
} }
coordinate pixel_location(uint8_t x, uint8_t y) { return pixel_location((int16_t)x, (int16_t)y); } inline coordinate pixel_location(const uint8_t x, const uint8_t y) { return pixel_location((int16_t)x, (int16_t)y); }
void lcd_implementation_ubl_plot(uint8_t x, uint8_t inverted_y) { void lcd_implementation_ubl_plot(const uint8_t x, const uint8_t inverted_y) {
#if LCD_WIDTH >= 20 #if LCD_WIDTH >= 20
#define _LCD_W_POS 12 #define _LCD_W_POS 12