advance_isr changed

This commit is contained in:
PavelSindler 2017-10-20 09:16:30 +02:00
parent ce04b518cc
commit 997937bd4c
1 changed files with 3 additions and 4 deletions

View File

@ -735,8 +735,6 @@ void isr() {
void advance_isr() {
nextAdvanceISR = eISR_Rate;
if (e_steps) {
bool dir =
#ifdef SNMM
@ -753,9 +751,10 @@ void isr() {
WRITE(E0_STEP_PIN, INVERT_E_STEP_PIN);
}
}
else if(eISR_Rate == 0) {
nextAdvanceISR = ADV_NEVER;
else{
eISR_Rate = ADV_NEVER;
}
nextAdvanceISR = eISR_Rate;
}
void advance_isr_scheduler() {