Skip to content

Commit eb65765

Browse files
authored
Merge pull request #3867 from dhalbert/frequencyin-fix-6.0.x
FrequencyIn: do not raise in interrupt handler
2 parents 8b03951 + 8907903 commit eb65765

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ void frequencyin_emergency_cancel_capture(uint8_t index) {
8282
#ifdef SAM_D5X_E5X
8383
NVIC_EnableIRQ(EIC_0_IRQn + self->channel);
8484
#endif
85-
mp_raise_RuntimeError(translate("Frequency captured is above capability. Capture Paused."));
85+
// Frequency captured is above capability. Capture paused.
86+
// We can't raise an error here; we're in an interrupt handler.
8687
}
8788

8889
void frequencyin_interrupt_handler(uint8_t index) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy