Skip to content

Commit eda1f81

Browse files
authored
Merge pull request adafruit#3872 from dhalbert/frequencyin-fix-6.0.x-to-6.0.x
Backport adafruit#3867 (FrequencyIn fix) to 6.0.x
2 parents baa053b + eb03e4b commit eda1f81

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