From 4a3fcd0bf980b82120d230af57aa9e78a3838809 Mon Sep 17 00:00:00 2001 From: Jason Smith Date: Sun, 1 Mar 2020 15:37:16 -0800 Subject: [PATCH] Fix three extruder with auto-fan build (#17035) --- Marlin/src/core/macros.h | 4 ++-- buildroot/share/tests/BIGTREE_SKR_PRO-tests | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Marlin/src/core/macros.h b/Marlin/src/core/macros.h index 5e0797d67..557234208 100644 --- a/Marlin/src/core/macros.h +++ b/Marlin/src/core/macros.h @@ -473,7 +473,7 @@ ( DEFER2(__RREPEAT2)()(ADD1(_RPT_I),SUB1(_RPT_N),_RPT_OP,V) ) \ ( /* Do nothing */ ) #define __RREPEAT2() _RREPEAT2 -#define RREPEAT_S(S,N,OP) EVAL(_RREPEAT(S,SUB##S(N),OP)) +#define RREPEAT_S(S,N,OP) EVAL1024(_RREPEAT(S,SUB##S(N),OP)) #define RREPEAT(N,OP) RREPEAT_S(0,N,OP) -#define RREPEAT2_S(S,N,OP,V...) EVAL(_RREPEAT2(S,SUB##S(N),OP,V)) +#define RREPEAT2_S(S,N,OP,V...) EVAL1024(_RREPEAT2(S,SUB##S(N),OP,V)) #define RREPEAT2(N,OP,V...) RREPEAT2_S(0,N,OP,V) diff --git a/buildroot/share/tests/BIGTREE_SKR_PRO-tests b/buildroot/share/tests/BIGTREE_SKR_PRO-tests index 094e01d9c..238b54d4f 100644 --- a/buildroot/share/tests/BIGTREE_SKR_PRO-tests +++ b/buildroot/share/tests/BIGTREE_SKR_PRO-tests @@ -14,5 +14,16 @@ opt_set MOTHERBOARD BOARD_BTT_SKR_PRO_V1_1 opt_set SERIAL_PORT 1 exec_test $1 $2 "BigTreeTech SKR Pro Default Configuration" +restore_configs +opt_set MOTHERBOARD BOARD_BTT_SKR_PRO_V1_1 +opt_set SERIAL_PORT -1 +opt_set EXTRUDERS 3 +opt_set TEMP_SENSOR_1 1 +opt_set TEMP_SENSOR_2 1 +opt_set E0_AUTO_FAN_PIN PC10 +opt_set E1_AUTO_FAN_PIN PC11 +opt_set E2_AUTO_FAN_PIN PC12 +exec_test $1 $2 "BigTreeTech SKR Pro 3 Extruders with Auto-Fan" + # clean up restore_configs