From d467c17e6a322594cdae7e1299c2c5706782c8bd Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Sat, 8 Dec 2012 22:32:40 +0100 Subject: [PATCH] buttons.c - the correct IRQ is PCIE1 --- firmware/buttons.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.43.5