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);