Skip to content

Commit

Permalink
Use SLEEP instead of ENABLE - insert a 2µs delay to allow waking up f…
Browse files Browse the repository at this point in the history
…rom sleep state.
  • Loading branch information
laurb9 committed Jan 27, 2019
1 parent e1159f2 commit 9a0479b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/BasicStepperDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 9a0479b

Please sign in to comment.