From fb359ed60505b9d348e72e5141caf759de356194 Mon Sep 17 00:00:00 2001 From: bigalex Date: Mon, 8 Oct 2012 21:50:44 +0200 Subject: [PATCH] measuring with adcbut 10ms is to slow for bright light and to fast for low light --- firmware/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/main.c b/firmware/main.c index 8b48ed5..0ef0a42 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -335,9 +335,9 @@ void do_mode5(void) { DDRC &= ~( (1 << PORTC1) | (1 << PORTC3)); //pull ups off PORTC &= ~( (1 << PORTC1) | (1 << PORTC3)); - + sample= true; }; - sample= true; + timer_set(&mytimer, 1); }; //end if timer_expired