|
@@ -706,22 +706,17 @@ void st_init()
|
706
|
706
|
sei();
|
707
|
707
|
}
|
708
|
708
|
|
709
|
|
-#define TEMPORARY_Z_HOME_SOUND_FIX
|
710
|
|
-#ifdef TEMPORARY_Z_HOME_SOUND_FIX
|
711
|
|
- #include <util/delay.h>
|
712
|
|
-#endif
|
|
709
|
+
|
|
710
|
+#include <util/delay.h>
|
713
|
711
|
// Block until all buffered steps are executed
|
714
|
712
|
void st_synchronize()
|
715
|
713
|
{
|
716
|
|
- while(plan_get_current_block()) {
|
|
714
|
+ while(current_block!=0 || blocks_queued()) {
|
717
|
715
|
manage_heater();
|
718
|
716
|
manage_inactivity(1);
|
719
|
717
|
LCD_STATUS;
|
720
|
|
- #ifdef TEMPORARY_Z_HOME_SOUND_FIX
|
721
|
|
- _delay_ms(200);
|
722
|
|
- _delay_ms(200);
|
723
|
|
- #endif
|
724
|
|
- }
|
|
718
|
+ //_delay_ms(1);
|
|
719
|
+ }
|
725
|
720
|
}
|
726
|
721
|
|
727
|
722
|
void st_set_position(const long &x, const long &y, const long &z, const long &e)
|