Skip to content
This repository has been archived by the owner on Aug 27, 2023. It is now read-only.

Commit

Permalink
Clean up some unused delay related stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
Traumflug committed Mar 24, 2013
1 parent aece36f commit 2ebfd44
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion dda_queue.c
Expand Up @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions delay.h
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion home.c
Expand Up @@ -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"


Expand Down
1 change: 0 additions & 1 deletion temp.c
Expand Up @@ -11,7 +11,6 @@
#include <avr/pgmspace.h> #include <avr/pgmspace.h>


#include "arduino.h" #include "arduino.h"
#include "delay.h"
#include "debug.h" #include "debug.h"
#ifndef EXTRUDER #ifndef EXTRUDER
#include "sersendf.h" #include "sersendf.h"
Expand Down

0 comments on commit 2ebfd44

Please sign in to comment.