X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fattiny%2Fao_exti.c;h=c5b7eb2b078380b531b200058e7dc3a0470a781d;hb=7f46240dfc57164f0c1b0c4c4ed9695bca63860d;hp=0ca10ca4385b54976387f2d80e795a9193488c01;hpb=64500ab11ab76d2309608f8e02a1dd9658963b3e;p=fw%2Faltos 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);