Fixed some small planner bugs
This commit is contained in:
@ -253,7 +253,7 @@ inline unsigned short calc_timer(unsigned short step_rate) {
|
||||
timer = (unsigned short)pgm_read_word_near(table_address);
|
||||
timer -= (((unsigned short)pgm_read_word_near(table_address+2) * (unsigned char)(step_rate & 0x0007))>>3);
|
||||
}
|
||||
if(timer < 100) timer = 100; //(20kHz this should never happen)
|
||||
if(timer < 100) { timer = 100; Serial.print("Steprate to high : "); Serial.println(step_rate); }//(20kHz this should never happen)
|
||||
return timer;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user