Merge pull request #157 from triffid/fix-order
fix enable_endstops being used before its definition
This commit is contained in:
commit
2379ce0df3
1 changed files with 6 additions and 7 deletions
|
|
@ -990,6 +990,12 @@ void get_command()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool check_endstops = true;
|
||||||
|
|
||||||
|
void enable_endstops(bool check)
|
||||||
|
{
|
||||||
|
check_endstops = check;
|
||||||
|
}
|
||||||
|
|
||||||
FORCE_INLINE float code_value() { return (strtod(&cmdbuffer[bufindr][strchr_pointer - cmdbuffer[bufindr] + 1], NULL)); }
|
FORCE_INLINE float code_value() { return (strtod(&cmdbuffer[bufindr][strchr_pointer - cmdbuffer[bufindr] + 1], NULL)); }
|
||||||
FORCE_INLINE long code_value_long() { return (strtol(&cmdbuffer[bufindr][strchr_pointer - cmdbuffer[bufindr] + 1], NULL, 10)); }
|
FORCE_INLINE long code_value_long() { return (strtol(&cmdbuffer[bufindr][strchr_pointer - cmdbuffer[bufindr] + 1], NULL, 10)); }
|
||||||
|
|
@ -2685,8 +2691,6 @@ static bool old_y_max_endstop=false;
|
||||||
static bool old_z_min_endstop=false;
|
static bool old_z_min_endstop=false;
|
||||||
static bool old_z_max_endstop=false;
|
static bool old_z_max_endstop=false;
|
||||||
|
|
||||||
static bool check_endstops = true;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// __________________________
|
// __________________________
|
||||||
|
|
@ -2712,11 +2716,6 @@ void st_wake_up()
|
||||||
ENABLE_STEPPER_DRIVER_INTERRUPT();
|
ENABLE_STEPPER_DRIVER_INTERRUPT();
|
||||||
}
|
}
|
||||||
|
|
||||||
void enable_endstops(bool check)
|
|
||||||
{
|
|
||||||
check_endstops = check;
|
|
||||||
}
|
|
||||||
|
|
||||||
FORCE_INLINE unsigned short calc_timer(unsigned short step_rate)
|
FORCE_INLINE unsigned short calc_timer(unsigned short step_rate)
|
||||||
{
|
{
|
||||||
unsigned short timer;
|
unsigned short timer;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue