Extended condition macros (#13419)
Allow `ENABLED`, `DISABLED`, `PIN_EXISTS`, and `BUTTON_EXISTS` to take multiple arguments. Also add: - Alias `ANY(...)` for `!DISABLED(...)` - Alias `ANY_PIN(...)` for `PIN_EXISTS(a) || PIN_EXISTS(b) ...` - Alias `EITHER(A,B)` for `ANY(...)` - Alias `ALL(...)` and `BOTH(A,B)` for `ENABLED(...)` - `NONE(...)` for `DISABLED(...)`
This commit is contained in:
		@@ -25,7 +25,7 @@
 | 
			
		||||
 | 
			
		||||
#include "../../Marlin.h"
 | 
			
		||||
 | 
			
		||||
#if ENABLED(FWRETRACT) && ENABLED(FWRETRACT_AUTORETRACT)
 | 
			
		||||
#if BOTH(FWRETRACT, FWRETRACT_AUTORETRACT)
 | 
			
		||||
  #include "../../feature/fwretract.h"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
@@ -79,7 +79,7 @@ void GcodeSuite::G0_G1(
 | 
			
		||||
      }
 | 
			
		||||
    #endif
 | 
			
		||||
 | 
			
		||||
    #if ENABLED(FWRETRACT) && ENABLED(FWRETRACT_AUTORETRACT)
 | 
			
		||||
    #if BOTH(FWRETRACT, FWRETRACT_AUTORETRACT)
 | 
			
		||||
 | 
			
		||||
      if (MIN_AUTORETRACT <= MAX_AUTORETRACT) {
 | 
			
		||||
        // When M209 Autoretract is enabled, convert E-only moves to firmware retract/recover moves
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user