From: Jan "Yenya" Kasprzak Date: Sat, 8 Dec 2012 21:32:40 +0000 (+0100) Subject: buttons.c - the correct IRQ is PCIE1 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=d467c17e6a322594cdae7e1299c2c5706782c8bd;p=bike-lights.git buttons.c - the correct IRQ is PCIE1 --- diff --git a/firmware/buttons.c b/firmware/buttons.c index c1a785d..1263fcb 100644 --- a/firmware/buttons.c +++ b/firmware/buttons.c @@ -133,8 +133,8 @@ void susp_buttons() DDRA &= ~(_BV(PA3) | _BV(PA4)); // set as input PORTA |= _BV(PA3) | _BV(PA4); // enable internal pull-ups - GIMSK &= ~_BV(PCIE1); // disable pin-change IRQ on port B - GIMSK |= _BV(PCIE0); + GIMSK &= ~_BV(PCIE0); + GIMSK |= _BV(PCIE1); PCMSK0 = _BV(PCINT3) | _BV(PCINT4); // disable pin-change IRQs on all pins except PA3,PA4