Ultimate followup to Stepper/Planner patch
- Search all symbols and apply prefixes where needed - Encapsulate some private methods - Inline some setters - Make `microstep_mode` a public method
This commit is contained in:
		@@ -224,9 +224,9 @@ class Stepper {
 | 
			
		||||
    void microstep_readings();
 | 
			
		||||
 | 
			
		||||
    #if ENABLED(Z_DUAL_ENDSTOPS)
 | 
			
		||||
      void set_homing_flag(bool state);
 | 
			
		||||
      void set_z_lock(bool state);
 | 
			
		||||
      void set_z2_lock(bool state);
 | 
			
		||||
      FORCE_INLINE void set_homing_flag(bool state) { performing_homing = state; }
 | 
			
		||||
      FORCE_INLINE void set_z_lock(bool state) { locked_z_motor = state; }
 | 
			
		||||
      FORCE_INLINE void set_z2_lock(bool state) { locked_z2_motor = state; }
 | 
			
		||||
    #endif
 | 
			
		||||
 | 
			
		||||
    #if ENABLED(BABYSTEPPING)
 | 
			
		||||
@@ -249,6 +249,8 @@ class Stepper {
 | 
			
		||||
      return endstops_trigsteps[axis] / planner.axis_steps_per_unit[axis];
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
  private:
 | 
			
		||||
 | 
			
		||||
    FORCE_INLINE unsigned short calc_timer(unsigned short step_rate) {
 | 
			
		||||
      unsigned short timer;
 | 
			
		||||
 | 
			
		||||
@@ -324,7 +326,6 @@ class Stepper {
 | 
			
		||||
      // SERIAL_ECHOLN(current_block->final_advance/256.0);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
  private:
 | 
			
		||||
    void digipot_init();
 | 
			
		||||
    void microstep_init();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user