Homing stepper enable bit fix.

This commit is contained in:
Sonny Jeon 2012-10-11 00:06:52 -06:00
parent 32963289fe
commit d8ca4176bf
2 changed files with 8 additions and 2 deletions

View File

@ -160,6 +160,9 @@ void limits_go_home()
{
plan_synchronize(); // Empty all motions in buffer.
// Enable steppers by resetting the stepper disable port
STEPPERS_DISABLE_PORT &= ~(1<<STEPPERS_DISABLE_BIT);
// Jog all axes toward home to engage their limit switches at faster homing seek rate.
homing_cycle(false, false, true, true, false, settings.homing_seek_rate); // First jog the z axis
homing_cycle(true, true, false, true, false, settings.homing_seek_rate); // Then jog the x and y axis
@ -179,4 +182,7 @@ void limits_go_home()
delay_ms(settings.homing_debounce_delay);
}
}
// Disable steppers by setting stepper disable
STEPPERS_DISABLE_PORT |= (1<<STEPPERS_DISABLE_BIT);
}

View File

@ -79,7 +79,7 @@ void print_uint8_base2(uint8_t n)
static void print_uint32_base10(unsigned long n)
{
unsigned char buf[32];
unsigned char buf[10];
uint8_t i = 0;
if (n == 0) {
@ -105,7 +105,7 @@ void printInteger(long n)
print_uint32_base10(n);
}
void printFloat(float n)
void printFloat(double n)
{
if (n < 0) {
serial_write('-');