Fix bug introduced by 2421b788: Check once per second when waiting for temp instead of every 256 seconds

This commit is contained in:
Michael Moon 2011-06-13 13:55:52 +10:00
parent cea2a656a5
commit e05e12c9e0
1 changed files with 2 additions and 7 deletions

View File

@ -2,14 +2,9 @@
#define _DDA_QUEUE #define _DDA_QUEUE
#include "dda.h" #include "dda.h"
#include "timer.h"
#if (F_CPU & 0xFF000000) == 0 #define HEATER_WAIT_TIMEOUT 1000 MS
// set timeout to 1 second
#define HEATER_WAIT_TIMEOUT (F_CPU << 8)
#else
// set timeout to maximum
#define HEATER_WAIT_TIMEOUT 0xFFFFFF00
#endif
/* /*
variables variables