@@ -7,7 +7,7 @@ bool test_seq_09(FastAccelStepper *stepper, struct test_seq_s *seq,
7
7
srand (135 );
8
8
#if defined(SUPPORT_ESP32_PULSE_COUNTER)
9
9
if (!stepper->attachToPulseCounter (7 )) {
10
- SerialInterface. println (" Error attaching to pulse counter" );
10
+ PRINTLN (" Error attaching to pulse counter" );
11
11
seq->state = TEST_STATE_ERROR;
12
12
return true ;
13
13
}
@@ -28,10 +28,10 @@ bool test_seq_09(FastAccelStepper *stepper, struct test_seq_s *seq,
28
28
uint32_t accel = rand () % (AMAX * 4 );
29
29
accel = accel >> ((accel % 4 ) + 2 );
30
30
accel = accel + AMIN;
31
- SerialInterface. print (" speed=" );
32
- SerialInterface. print (speed);
33
- SerialInterface. print (" accel=" );
34
- SerialInterface. println (accel);
31
+ PRINT (" speed=" );
32
+ PRINT (speed);
33
+ PRINT (" accel=" );
34
+ PRINTLN (accel);
35
35
stepper->setSpeedInUs (speed);
36
36
stepper->setAcceleration (accel);
37
37
if (rand () & 1 ) {
@@ -58,8 +58,8 @@ bool test_seq_09(FastAccelStepper *stepper, struct test_seq_s *seq,
58
58
#if defined(SUPPORT_ESP32_PULSE_COUNTER)
59
59
int16_t old = seq->s16_1 ;
60
60
seq->s16_1 = stepper->readPulseCounter ();
61
- SerialInterface. print (" Steps needed for stop=" );
62
- SerialInterface. println (old - seq->s16_1 );
61
+ PRINT (" Steps needed for stop=" );
62
+ PRINTLN (old - seq->s16_1 );
63
63
#endif
64
64
seq->state ++;
65
65
}
@@ -68,7 +68,7 @@ bool test_seq_09(FastAccelStepper *stepper, struct test_seq_s *seq,
68
68
if (time_ms - seq->u32_1 >= 100 ) {
69
69
#if defined(SUPPORT_ESP32_PULSE_COUNTER)
70
70
if (seq->s16_1 != stepper->readPulseCounter ()) {
71
- SerialInterface. println (" Step AFTER stop" );
71
+ PRINTLN (" Step AFTER stop" );
72
72
}
73
73
#endif
74
74
seq->u32_1 = time_ms;
0 commit comments