diff --git a/dda_queue.c b/dda_queue.c index a0098dc..7674c9f 100644 --- a/dda_queue.c +++ b/dda_queue.c @@ -94,7 +94,7 @@ void queue_step() { void enqueue_home(TARGET *t, uint8_t endstop_check, uint8_t endstop_stop_cond) { // don't call this function when the queue is full, but just in case, wait for a move to complete and free up the space for the passed target while (queue_full()) - delay(WAITING_DELAY); + delay(100); uint8_t h = mb_head + 1; h &= (MOVEBUFFER_SIZE - 1); diff --git a/delay.h b/delay.h index e507199..8870bbf 100644 --- a/delay.h +++ b/delay.h @@ -5,8 +5,6 @@ #include #include "watchdog.h" -#define WAITING_DELAY 100 - #if F_CPU < 4000000UL #error Delay functions only work with F_CPU >= 4000000UL #endif diff --git a/home.c b/home.c index 5618191..75263cd 100644 --- a/home.c +++ b/home.c @@ -6,7 +6,6 @@ #include "dda.h" #include "dda_queue.h" -#include "delay.h" #include "pinio.h" #include "gcode_parse.h" diff --git a/temp.c b/temp.c index 306056c..4d3583f 100644 --- a/temp.c +++ b/temp.c @@ -11,7 +11,6 @@ #include #include "arduino.h" -#include "delay.h" #include "debug.h" #ifndef EXTRUDER #include "sersendf.h"