Skip to content

Commit

Permalink
Major bug on ports C and D for 1284 chips. Fixed? Cross your fingers.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Schwager committed Apr 30, 2016
1 parent b178547 commit 75824e5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion EnableInterrupt.h
Expand Up @@ -1656,7 +1656,11 @@ ISR(PORTC_VECT) {/*{{{*/
interruptMask = fallingPinsPORTC & ~current;
interruptMask = interruptMask | tmp;
interruptMask = changedPins & interruptMask;
#if (defined MIGHTY1284)
interruptMask = PCMSK2 & interruptMask;
#else
interruptMask = PCMSK1 & interruptMask;
#endif

portSnapshotC = current;
#ifdef NEEDFORSPEED
Expand Down Expand Up @@ -1708,8 +1712,11 @@ ISR(PORTD_VECT) {/*{{{*/
interruptMask = fallingPinsPORTD & ~current;
interruptMask = interruptMask | tmp;
interruptMask = changedPins & interruptMask;
#if (defined MIGHTY1284)
interruptMask = PCMSK3 & interruptMask;
#else
interruptMask = PCMSK2 & interruptMask;

#endif

portSnapshotD = current;
#ifdef NEEDFORSPEED
Expand Down

0 comments on commit 75824e5

Please sign in to comment.