Skip to content

Commit 336fa22

Browse files
committed
feat(stepper-demo): add conditional compilation for AVR ATmega32U4
1 parent 5e36264 commit 336fa22

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

examples/StepperDemo/StepperDemo.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ const static char messages[] PROGMEM =
829829

830830

831831
/* USAGE TEST */
832-
#if !defined(SIM_TEST_INPUT)
832+
#if !defined(SIM_TEST_INPUT) && !defined(__AVR_ATmega32U4__)
833833
_Enter_command_separated_by_space_carriage_return_or_newline_NL
834834
_m1_m2_to_select_stepper_
835835
____ "R" ________ _ooo_ "start all " _select "ed tests" _NL_
@@ -997,9 +997,11 @@ void setup() {
997997
PRINTLN("");
998998
#endif
999999

1000+
#ifndef __AVR_ATmega32U4__
10001001
for (uint8_t i = 0; i < MAX_STEPPER; i++) {
10011002
test_seq[i].test = NULL;
10021003
}
1004+
#endif
10031005

10041006
output_msg(MSG_STEPPER_VERSION);
10051007
#ifdef F_CPU

0 commit comments

Comments
 (0)