|
|
@ -706,22 +706,17 @@ void st_init()
|
|
|
|
sei();
|
|
|
|
sei();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#define TEMPORARY_Z_HOME_SOUND_FIX
|
|
|
|
|
|
|
|
#ifdef TEMPORARY_Z_HOME_SOUND_FIX
|
|
|
|
#include <util/delay.h>
|
|
|
|
#include <util/delay.h>
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// Block until all buffered steps are executed
|
|
|
|
// Block until all buffered steps are executed
|
|
|
|
void st_synchronize()
|
|
|
|
void st_synchronize()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
while(plan_get_current_block()) {
|
|
|
|
while(current_block!=0 || blocks_queued()) {
|
|
|
|
manage_heater();
|
|
|
|
manage_heater();
|
|
|
|
manage_inactivity(1);
|
|
|
|
manage_inactivity(1);
|
|
|
|
LCD_STATUS;
|
|
|
|
LCD_STATUS;
|
|
|
|
#ifdef TEMPORARY_Z_HOME_SOUND_FIX
|
|
|
|
//_delay_ms(1);
|
|
|
|
_delay_ms(200);
|
|
|
|
}
|
|
|
|
_delay_ms(200);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void st_set_position(const long &x, const long &y, const long &z, const long &e)
|
|
|
|
void st_set_position(const long &x, const long &y, const long &z, const long &e)
|
|
|
|