From 13f642c63782a4780a929b9bdbad2e2b2bfe31d8 Mon Sep 17 00:00:00 2001 From: midopple Date: Wed, 28 Mar 2012 10:49:05 +0300 Subject: add my name --- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README b/README index 5d5664d..0100e80 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -The leading developers of Sprinter are currently Kliment and caru, though many others contribute with their patches. +The leading developers of Sprinter are currently Kliment, caru and midopple, though many others contribute with their patches. This is a firmware for RAMPS and other reprap single-processor electronics setups. It supports printing from SD card, active heatbed control, and ATmega internal pullups. -- cgit v1.2.1 From f1bc263860971bde10dfaf5234f3b431c68fbc68 Mon Sep 17 00:00:00 2001 From: Michael Moon Date: Wed, 28 Mar 2012 21:41:46 +1100 Subject: fix enable_endstops being used before its definition --- Sprinter/Sprinter.pde | 13 ++++++------- 1 file 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; -- cgit v1.2.1