Clean up some unused delay related stuff.
This commit is contained in:
parent
aece36f6a2
commit
2ebfd44530
|
|
@ -94,7 +94,7 @@ void queue_step() {
|
||||||
void enqueue_home(TARGET *t, uint8_t endstop_check, uint8_t endstop_stop_cond) {
|
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
|
// 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())
|
while (queue_full())
|
||||||
delay(WAITING_DELAY);
|
delay(100);
|
||||||
|
|
||||||
uint8_t h = mb_head + 1;
|
uint8_t h = mb_head + 1;
|
||||||
h &= (MOVEBUFFER_SIZE - 1);
|
h &= (MOVEBUFFER_SIZE - 1);
|
||||||
|
|
|
||||||
2
delay.h
2
delay.h
|
|
@ -5,8 +5,6 @@
|
||||||
#include <util/delay_basic.h>
|
#include <util/delay_basic.h>
|
||||||
#include "watchdog.h"
|
#include "watchdog.h"
|
||||||
|
|
||||||
#define WAITING_DELAY 100
|
|
||||||
|
|
||||||
#if F_CPU < 4000000UL
|
#if F_CPU < 4000000UL
|
||||||
#error Delay functions only work with F_CPU >= 4000000UL
|
#error Delay functions only work with F_CPU >= 4000000UL
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
1
home.c
1
home.c
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
#include "dda.h"
|
#include "dda.h"
|
||||||
#include "dda_queue.h"
|
#include "dda_queue.h"
|
||||||
#include "delay.h"
|
|
||||||
#include "pinio.h"
|
#include "pinio.h"
|
||||||
#include "gcode_parse.h"
|
#include "gcode_parse.h"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue