X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fattiny%2Fao_exti.c;h=c5b7eb2b078380b531b200058e7dc3a0470a781d;hp=0ca10ca4385b54976387f2d80e795a9193488c01;hb=0448b9b638f8599633227a639ef9d8572780bbd9;hpb=5a55501660ebab3b858a48483c5df1cfb4e858e4 diff --git a/src/attiny/ao_exti.c b/src/attiny/ao_exti.c index 0ca10ca4..c5b7eb2b 100644 --- a/src/attiny/ao_exti.c +++ b/src/attiny/ao_exti.c @@ -3,7 +3,8 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; version 2 of the License. + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of @@ -30,6 +31,7 @@ ISR(PCINT0_vect) void ao_exti_setup_port(uint8_t pin, uint8_t mode, void (*callback)(void)) { + (void) mode; pcint_callback = callback; pcint_mask = (1 << pin); ao_exti_disable(PORTB, pin);