]> www.fi.muni.cz Git - bike-lights.git/commitdiff
buttons.c - the correct IRQ is PCIE1
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sat, 8 Dec 2012 21:32:40 +0000 (22:32 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sat, 8 Dec 2012 21:32:40 +0000 (22:32 +0100)
firmware/buttons.c

index c1a785d0492c93d9bf91fff728b7e646c3879d9b..1263fcb487adc37affa6eca9c1edbac56edc2090 100644 (file)
@@ -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