From 9a0479ba1ebcee09cc321436113a623bd52de61f Mon Sep 17 00:00:00 2001 From: Laurentiu Badea Date: Sun, 27 Jan 2019 15:54:14 -0800 Subject: [PATCH] =?UTF-8?q?Use=20SLEEP=20instead=20of=20ENABLE=20-=20inser?= =?UTF-8?q?t=20a=202=C2=B5s=20delay=20to=20allow=20waking=20up=20from=20sl?= =?UTF-8?q?eep=20state.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BasicStepperDriver.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/BasicStepperDriver.cpp b/src/BasicStepperDriver.cpp index f202031..8ca9f92 100644 --- a/src/BasicStepperDriver.cpp +++ b/src/BasicStepperDriver.cpp @@ -325,7 +325,8 @@ void BasicStepperDriver::setEnableActiveState(short state){ void BasicStepperDriver::enable(void){ if IS_CONNECTED(enable_pin){ digitalWrite(enable_pin, enable_active_state); - } + }; + delayMicros(2); } void BasicStepperDriver::disable(void){