Merge branch 'Marlin_v1', remote-tracking branch 'origin/Marlin_v1' into Marlin_v1
This commit is contained in:
@ -21,6 +21,7 @@
|
||||
/* The timer calculations of this module informed by the 'RepRap cartesian firmware' by Zack Smith
|
||||
and Philipp Tiefenbacher. */
|
||||
|
||||
|
||||
#include "stepper.h"
|
||||
#include "Configuration.h"
|
||||
#include "Marlin.h"
|
||||
@ -454,7 +455,7 @@ ISR(TIMER1_COMPA_vect)
|
||||
// Calculare new timer value
|
||||
unsigned short timer;
|
||||
unsigned short step_rate;
|
||||
if (step_events_completed <= current_block->accelerate_until) {
|
||||
if (step_events_completed <= (unsigned long int)current_block->accelerate_until) {
|
||||
|
||||
MultiU24X24toH16(acc_step_rate, acceleration_time, current_block->acceleration_rate);
|
||||
acc_step_rate += current_block->initial_rate;
|
||||
@ -478,7 +479,7 @@ ISR(TIMER1_COMPA_vect)
|
||||
|
||||
#endif
|
||||
}
|
||||
else if (step_events_completed > current_block->decelerate_after) {
|
||||
else if (step_events_completed > (unsigned long int)current_block->decelerate_after) {
|
||||
MultiU24X24toH16(step_rate, deceleration_time, current_block->acceleration_rate);
|
||||
|
||||
if(step_rate > acc_step_rate) { // Check step_rate stays positive
|
||||
@ -695,7 +696,7 @@ void st_set_e_position(const long &e)
|
||||
CRITICAL_SECTION_END;
|
||||
}
|
||||
|
||||
long st_get_position(char axis)
|
||||
long st_get_position(uint8_t axis)
|
||||
{
|
||||
long count_pos;
|
||||
CRITICAL_SECTION_START;
|
||||
|
Reference in New Issue
Block a user