From c0543f206dee7255f400b2398109b15a195d4a23 Mon Sep 17 00:00:00 2001 From: Bart Van Der Meerssche Date: Wed, 13 Oct 2010 11:07:51 +0200 Subject: [PATCH] avr: allow 32-bit meterconstants for pulse inputs --- mote/v1/avr/main.c | 2 +- mote/v1/avr/main.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mote/v1/avr/main.c b/mote/v1/avr/main.c index 1ffb5b2..4ff885d 100644 --- a/mote/v1/avr/main.c +++ b/mote/v1/avr/main.c @@ -70,7 +70,7 @@ ISR(PCINT2_vect) { } **/ -void pulse_add(volatile struct sensor *measurement, volatile struct state *aux, uint8_t pulse_const, uint8_t pulse_half) { +void pulse_add(volatile struct sensor *measurement, volatile struct state *aux, uint32_t pulse_const, uint32_t pulse_half) { measurement->value += pulse_const; if (aux->half == true) { diff --git a/mote/v1/avr/main.h b/mote/v1/avr/main.h index 0444ad2..9fe0578 100644 --- a/mote/v1/avr/main.h +++ b/mote/v1/avr/main.h @@ -141,5 +141,5 @@ struct sensor { // prototypes void WDT_off(void); void WDT_on(void); -void pulse_add(volatile struct sensor *measurement, volatile struct state *aux, uint8_t pulse_const, uint8_t pulse_half); +void pulse_add(volatile struct sensor *measurement, volatile struct state *aux, uint32_t pulse_const, uint32_t pulse_half); void send(uint8_t msg_type, const struct sensor *measurement, const struct state *aux);