Merge from experimental, thanks to triffid_hunter

This commit is contained in:
midopple 2012-03-28 15:37:26 +02:00
commit 2579d9390d
2 changed files with 7 additions and 8 deletions

2
README
View file

@ -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.

View file

@ -993,6 +993,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)); }
@ -2699,8 +2705,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;
// __________________________
@ -2726,11 +2730,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;