diff --git a/examples/Issue262/Issue262.ino b/examples/Issue262/Issue262.ino index 3d131ef..1d61122 100644 --- a/examples/Issue262/Issue262.ino +++ b/examples/Issue262/Issue262.ino @@ -19,8 +19,7 @@ void setup() { Serial.begin(USB_BAUD); randomSeed(42); delay(100); - Serial.print("hello"); - + Serial.println("hello"); } void loop() { @@ -40,7 +39,8 @@ void loop() { while (stepper -> getCurrentSpeedInMilliHz() != 0) { count ++; if (count > 20) { - Serial.print("No stop iter# "); + Serial.print(millis()); + Serial.print("ms: No stop iter# "); Serial.print(count); Serial.print("."); Serial.print(" Target: "); @@ -56,15 +56,4 @@ void loop() { if (count > 200) break; } - for (i =0; i< 100; i++) { - delay(5); - uint32_t sp = stepper-> getCurrentSpeedInMilliHz(); - if (sp !=0) { - Serial.print("Speed error. Received value: "); - Serial.print(sp); - Serial.print(". Target speed was "); - Serial.print(target); - Serial.println(); - } - } }