]> www.fi.muni.cz Git - bike-lights.git/commitdiff
misc debugging
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Tue, 28 Aug 2012 22:28:15 +0000 (00:28 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Tue, 28 Aug 2012 22:28:15 +0000 (00:28 +0200)
ambient.c
gpio.c

index e14e0243fb628228e433240bbc7c96260ac82236..cbbef9e02a78d902ef606dad286ffa8cb90358da 100644 (file)
--- a/ambient.c
+++ b/ambient.c
@@ -42,7 +42,7 @@ void ambient_adc(uint16_t adcval)
        if (!ambient_zone_set || newzone != ambient_zone) {
                ambient_zone = newzone;
                ambient_zone_set = 1;
-               ambient_zone_changed();
+               // ambient_zone_changed();
        }
 }
 
diff --git a/gpio.c b/gpio.c
index e0f58b9647c63b597760b71b18e9943d5ff56a69..2ee32109d754360434afc6ec0ed3d5c3a8269592 100644 (file)
--- a/gpio.c
+++ b/gpio.c
@@ -6,6 +6,8 @@ void gpio_init()
 {
        DDRB |= _BV(PB2) | _BV(PB4);
        PORTB &=~ (_BV(PB2) | _BV(PB4));
+
+       gpio_set(GPIO_LED2, 1);
 }
 
 void gpio_set(unsigned char n, unsigned char on)