From 32d077790fbb14fc249dcc459653a398b47b0ec2 Mon Sep 17 00:00:00 2001 From: harald42 Date: Wed, 17 Apr 2013 13:44:17 +0200 Subject: [PATCH] remove debug code --- platform/osd-merkur/dev/button-sensor.c | 26 ++++++++++++------------- platform/osd-merkur/dev/dht11.c | 8 ++++---- platform/osd-merkur/dev/leds-arch.c | 2 +- platform/osd-merkur/dev/leds-arch.h | 2 +- platform/osd-merkur/dev/pir-sensor.c | 8 ++++---- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/platform/osd-merkur/dev/button-sensor.c b/platform/osd-merkur/dev/button-sensor.c index 491879f3a..825467781 100644 --- a/platform/osd-merkur/dev/button-sensor.c +++ b/platform/osd-merkur/dev/button-sensor.c @@ -14,22 +14,22 @@ static int enabled = 0; struct sensors_sensor *sensors[1]; unsigned char sensors_flags[1]; -#define BUTTON_BIT INTF5 +#define BUTTON_BIT INTF4 #define BUTTON_CHECK_IRQ() (EIFR & BUTTON_BIT) ? 0 : 1 #define PRINTF(...) printf(__VA_ARGS__) /*---------------------------------------------------------------------------*/ -ISR(INT5_vect) +ISR(INT4_vect) { -// leds_toggle(LEDS_YELLOW); +// leds_toggle(LEDS_RED); if(BUTTON_CHECK_IRQ()) { if(timer_expired(&debouncetimer)) { - led1_on(); + // led1_on(); timer_set(&debouncetimer, CLOCK_SECOND / 4); sensors_changed(&button_sensor); - led1_off(); + // led1_off(); } } @@ -39,7 +39,7 @@ ISR(INT5_vect) static int value(int type) { - return (PORTE & _BV(PE5) ? 0 : 1) || !timer_expired(&debouncetimer); + return (PORTE & _BV(PE4) ? 0 : 1) || !timer_expired(&debouncetimer); //return 0; } @@ -50,19 +50,19 @@ configure(int type, int c) case SENSORS_ACTIVE: if (c) { if(!status(SENSORS_ACTIVE)) { - led1_on(); + // led1_on(); timer_set(&debouncetimer, 0); - DDRE |= (0<= 15) { //If it was high for more than 40uS - led1_off(); + // led1_off(); data[j/8]|=1; //it means it is bit '1' so make a logic - led1_on(); + // led1_on(); } //OR with the value (save it) j++; //making an OR by 1 to this value 10101000 - led1_off(); + // led1_off(); } //we will have the resault 10101001 //1 in 8-bit binary is 00000001 diff --git a/platform/osd-merkur/dev/leds-arch.c b/platform/osd-merkur/dev/leds-arch.c index 8994bb5a1..3db79ec17 100644 --- a/platform/osd-merkur/dev/leds-arch.c +++ b/platform/osd-merkur/dev/leds-arch.c @@ -50,7 +50,7 @@ void leds_arch_init(void) { -DDRE|=(1<