aboutsummaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2012-03-15 16:22:49 +0000
committerDimitri Sokolyuk <demon@dim13.org>2012-03-15 16:22:49 +0000
commit7c6f6229a9bc7d818817436a99728d66f0f3bc76 (patch)
tree43d6a3bb1b7828e3a8ab8071e73eccf457d99c65 /firmware
parentce38ffc64016bf32068f31eba24bb55fb82773a7 (diff)
adjust timeout
Diffstat (limited to 'firmware')
-rw-r--r--firmware/firmware.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/firmware.c b/firmware/firmware.c
index a7dc4f3..e6015fe 100644
--- a/firmware/firmware.c
+++ b/firmware/firmware.c
@@ -19,7 +19,7 @@
#include <avr/boot.h>
#include <util/setbaud.h> /* depends on BAUD & F_CPU env vars */
-#define TIMEOUT F_CPU /* 1 sec, no prescale */
+#define TIMEOUT (F_CPU >> 4) /* ~ 1 sec */
#define PUTCH(c) do { \
loop_until_bit_is_set(UCSR0A, UDRE0); UDR0 = (c); \
} while (0)
@@ -36,8 +36,8 @@ main(void)
{
uint32_t c = 0;
uint16_t off = 0;
+ uint16_t n = 0;
uint8_t ch = 0;
- uint8_t n = 0;
uint8_t sum = 0;
uint8_t state = INIT;