From: Jan "Yenya" Kasprzak Date: Tue, 28 Aug 2012 22:28:15 +0000 (+0200) Subject: misc debugging X-Git-Tag: gedasymbols-20120913~45 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=bike-lights.git;a=commitdiff_plain;h=2cbbe3d3f5c9499afa13a65a416f3d836c84fbfc misc debugging --- diff --git a/ambient.c b/ambient.c index e14e024..cbbef9e 100644 --- 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 e0f58b9..2ee3210 100644 --- 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)