Skip to content

Commit e05e12c

Browse files
committed
Fix bug introduced by 2421b78: Check once per second when waiting for temp instead of every 256 seconds
1 parent cea2a65 commit e05e12c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

dda_queue.h

+2-7
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,9 @@
22
#define _DDA_QUEUE
33

44
#include "dda.h"
5+
#include "timer.h"
56

6-
#if (F_CPU & 0xFF000000) == 0
7-
// set timeout to 1 second
8-
#define HEATER_WAIT_TIMEOUT (F_CPU << 8)
9-
#else
10-
// set timeout to maximum
11-
#define HEATER_WAIT_TIMEOUT 0xFFFFFF00
12-
#endif
7+
#define HEATER_WAIT_TIMEOUT 1000 MS
138

149
/*
1510
variables

0 commit comments

Comments
 (0)