summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkliment <kliment.yanev@gmail.com>2012-03-28 06:12:21 -0700
committerkliment <kliment.yanev@gmail.com>2012-03-28 06:12:21 -0700
commit85f61f040ff303fbd88b311bc861fe29b1789234 (patch)
tree22024215409f82b3a305ffd7a827242e76ba3c84
parent13cd4cb757b7afc4436dd94424267364bc5120c3 (diff)
parent2379ce0df36c6b92341718fc9cce15a242c7f226 (diff)
Merge pull request #158 from kliment/master
fix compiling from makefile
-rw-r--r--Sprinter/Sprinter.pde13
1 files changed, 6 insertions, 7 deletions
diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde
index 9de3d48..53d42b8 100644
--- a/Sprinter/Sprinter.pde
+++ b/Sprinter/Sprinter.pde
@@ -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 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_max_endstop=false;
-static bool check_endstops = true;
-
// __________________________
@@ -2712,11 +2716,6 @@ void st_wake_up()
ENABLE_STEPPER_DRIVER_INTERRUPT();
}
-void enable_endstops(bool check)
-{
- check_endstops = check;
-}
-
FORCE_INLINE unsigned short calc_timer(unsigned short step_rate)
{
unsigned short timer;