Skip to content

Commit

Permalink
Fix #1134
Browse files Browse the repository at this point in the history
  • Loading branch information
SpenceKonde committed Sep 29, 2024
1 parent 9a50e07 commit c03d4a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions megaavr/cores/megatinycore/WInterrupts.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
SREG = oldSREG;
}
}
#if !defined(CORE_ATTACH_EARLYCLEAR)
#if !defined(CORE_ATTACH_EARLYCLEAR) // late clear.
void __attribute__((naked)) __attribute__((used)) __attribute__((noreturn)) isrBody() {
asm volatile (
"AttachedISR:" "\n\t" // as the scene opens, we have r16 on the stack already, portnumber x 2 in the r16
Expand Down Expand Up @@ -291,7 +291,7 @@
}
uint8_t port = digitalPinToPort(pin);
uint8_t p = (port << 5) + bitpos;
*(((volatile uint8_t*) &PORTA_PIN0CTRL) + p) &= 0xF1; // int off....
*(((volatile uint8_t*) &PORTA_PIN0CTRL) + p) &= 0xF8; // int off....
*((volatile uint8_t*) ((uint16_t)((port << 4) + 3))) = (1 << bitpos);// flag clear
intFunc[port][bitpos] = 0; // clear pointer
}
Expand Down Expand Up @@ -368,7 +368,7 @@
#endif
#else /* This is the old implementation, and it's copyright boilerplate. */

/* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/* -*- mode: jde; c-basic-offset: 2; indent-tabs-mode: nil -*- */ //<---- FFS! That was in the original!

/*
Part of the Wiring project - http://wiring.uniandes.edu.co
Expand Down

1 comment on commit c03d4a5

@SpenceKonde
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Argh! I typoed the issue number! And there's no way to change the title of the commit!
Fuck!
This fixes 1143.

Please sign in to comment.