🎨 Misc. cleanup
This commit is contained in:
		
				
					committed by
					
						
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							8abe314b18
						
					
				
				
					commit
					ccc66a8528
				
			@@ -67,13 +67,13 @@
 | 
			
		||||
void GcodeSuite::M600() {
 | 
			
		||||
 | 
			
		||||
  #if ENABLED(MIXING_EXTRUDER)
 | 
			
		||||
    const int8_t target_e_stepper = get_target_e_stepper_from_command();
 | 
			
		||||
    if (target_e_stepper < 0) return;
 | 
			
		||||
    const int8_t eindex = get_target_e_stepper_from_command();
 | 
			
		||||
    if (eindex < 0) return;
 | 
			
		||||
 | 
			
		||||
    const uint8_t old_mixing_tool = mixer.get_current_vtool();
 | 
			
		||||
    mixer.T(MIXER_DIRECT_SET_TOOL);
 | 
			
		||||
 | 
			
		||||
    MIXER_STEPPER_LOOP(i) mixer.set_collector(i, i == uint8_t(target_e_stepper) ? 1.0 : 0.0);
 | 
			
		||||
    MIXER_STEPPER_LOOP(i) mixer.set_collector(i, i == uint8_t(eindex) ? 1.0 : 0.0);
 | 
			
		||||
    mixer.normalize();
 | 
			
		||||
 | 
			
		||||
    const int8_t target_extruder = active_extruder;
 | 
			
		||||
 
 | 
			
		||||
@@ -60,13 +60,13 @@ void GcodeSuite::M701() {
 | 
			
		||||
  if (TERN0(NO_MOTION_BEFORE_HOMING, axes_should_home())) park_point.z = 0;
 | 
			
		||||
 | 
			
		||||
  #if ENABLED(MIXING_EXTRUDER)
 | 
			
		||||
    const int8_t target_e_stepper = get_target_e_stepper_from_command();
 | 
			
		||||
    if (target_e_stepper < 0) return;
 | 
			
		||||
    const int8_t eindex = get_target_e_stepper_from_command();
 | 
			
		||||
    if (eindex < 0) return;
 | 
			
		||||
 | 
			
		||||
    const uint8_t old_mixing_tool = mixer.get_current_vtool();
 | 
			
		||||
    mixer.T(MIXER_DIRECT_SET_TOOL);
 | 
			
		||||
 | 
			
		||||
    MIXER_STEPPER_LOOP(i) mixer.set_collector(i, (i == (uint8_t)target_e_stepper) ? 1.0 : 0.0);
 | 
			
		||||
    MIXER_STEPPER_LOOP(i) mixer.set_collector(i, i == uint8_t(eindex) ? 1.0 : 0.0);
 | 
			
		||||
    mixer.normalize();
 | 
			
		||||
 | 
			
		||||
    const int8_t target_extruder = active_extruder;
 | 
			
		||||
@@ -165,10 +165,10 @@ void GcodeSuite::M702() {
 | 
			
		||||
    #endif
 | 
			
		||||
 | 
			
		||||
    if (seenT) {
 | 
			
		||||
      const int8_t target_e_stepper = get_target_e_stepper_from_command();
 | 
			
		||||
      if (target_e_stepper < 0) return;
 | 
			
		||||
      const int8_t eindex = get_target_e_stepper_from_command();
 | 
			
		||||
      if (eindex < 0) return;
 | 
			
		||||
      mixer.T(MIXER_DIRECT_SET_TOOL);
 | 
			
		||||
      MIXER_STEPPER_LOOP(i) mixer.set_collector(i, (i == (uint8_t)target_e_stepper) ? 1.0 : 0.0);
 | 
			
		||||
      MIXER_STEPPER_LOOP(i) mixer.set_collector(i, i == uint8_t(eindex) ? 1.0 : 0.0);
 | 
			
		||||
      mixer.normalize();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -53,9 +53,7 @@ void GcodeSuite::M430() {
 | 
			
		||||
    SERIAL_ECHOLNPGM(
 | 
			
		||||
      #if ENABLED(POWER_MONITOR_CURRENT)
 | 
			
		||||
        "Current: ", power_monitor.getAmps(), "A"
 | 
			
		||||
        #if ENABLED(POWER_MONITOR_VOLTAGE)
 | 
			
		||||
          "  "
 | 
			
		||||
        #endif
 | 
			
		||||
        TERN_(POWER_MONITOR_VOLTAGE, "  ")
 | 
			
		||||
      #endif
 | 
			
		||||
      #if ENABLED(POWER_MONITOR_VOLTAGE)
 | 
			
		||||
        "Voltage: ", power_monitor.getVolts(), "V"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user