aboutsummaryrefslogtreecommitdiff
path: root/gyro.c
diff options
context:
space:
mode:
Diffstat (limited to 'gyro.c')
-rw-r--r--gyro.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gyro.c b/gyro.c
index bbcb0fe..eede345 100644
--- a/gyro.c
+++ b/gyro.c
@@ -48,9 +48,9 @@ void gyroInit () {
DDRB = (DDRB & ~((1 << PB1)));
PORTB = (PORTB | (1 << PB1));
/* enable interrupt PCI0 */
- PCICR = (1 << PCIE0);
+ PCICR = PCICR | (1 << PCIE0);
/* enable interrupts on PB1/PCINT1 */
- PCMSK0 = (1 << 1);
+ PCMSK0 = (1 << PCINT1);
}
/* XXX: make nonblocking */