Optimize G-code flag parameters (#21849)
This commit is contained in:
		
				
					committed by
					
						
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							770edea577
						
					
				
				
					commit
					6a1e78e614
				
			@@ -68,7 +68,7 @@ void GcodeSuite::M106() {
 | 
			
		||||
      if (t > 0) return thermalManager.set_temp_fan_speed(pfan, t);
 | 
			
		||||
    #endif
 | 
			
		||||
 | 
			
		||||
    const uint16_t dspeed = parser.seen('A') ? thermalManager.fan_speed[active_extruder] : 255;
 | 
			
		||||
    const uint16_t dspeed = parser.seen_test('A') ? thermalManager.fan_speed[active_extruder] : 255;
 | 
			
		||||
 | 
			
		||||
    uint16_t speed = dspeed;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -47,7 +47,7 @@
 | 
			
		||||
void GcodeSuite::M303() {
 | 
			
		||||
 | 
			
		||||
  #if ANY(PID_DEBUG, PID_BED_DEBUG, PID_CHAMBER_DEBUG)
 | 
			
		||||
    if (parser.seen('D')) {
 | 
			
		||||
    if (parser.seen_test('D')) {
 | 
			
		||||
      thermalManager.pid_debug_flag ^= true;
 | 
			
		||||
      SERIAL_ECHO_START();
 | 
			
		||||
      SERIAL_ECHOPGM("PID Debug ");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user