From e05e12c9e077b955812d38e75fa2680d8d70e5e1 Mon Sep 17 00:00:00 2001 From: Michael Moon Date: Mon, 13 Jun 2011 13:55:52 +1000 Subject: [PATCH] Fix bug introduced by 2421b788: Check once per second when waiting for temp instead of every 256 seconds --- dda_queue.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/dda_queue.h b/dda_queue.h index 275ca5f..b676fae 100644 --- a/dda_queue.h +++ b/dda_queue.h @@ -2,14 +2,9 @@ #define _DDA_QUEUE #include "dda.h" +#include "timer.h" -#if (F_CPU & 0xFF000000) == 0 - // set timeout to 1 second - #define HEATER_WAIT_TIMEOUT (F_CPU << 8) -#else - // set timeout to maximum - #define HEATER_WAIT_TIMEOUT 0xFFFFFF00 -#endif +#define HEATER_WAIT_TIMEOUT 1000 MS /* variables